-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement tryceratops
#2056
Comments
Renamed to TRY to avoid conflicts, as proposed in guilatrova/tryceratops#55 https://github.com/guilatrova/tryceratops/blob/main/docs/violations/TC300.md See: #2056
Taking TC201 |
For tracking: I'm working on TC004 |
@charliermarsh, i would like to do TC200. |
Awesome -- thanks all! Will review as they come in :) |
I'll take TC301 next. |
I'd like to implement TC400, which would be my first rule so it might take a few days. Would that be fast enough ? |
@Flowake - Sure! Take your time. Feel free to open a draft PR and ask questions there if you run into any. |
I'll take TC002 next. |
Hmm, comparing to the original plugin, I think what's incorrect is the highlighted region. It seems to want you to do this (omitting some intermediary lines since I had to copy from the screenshot :)): try:
assert isinstance(value, list) is False
except Exception as exc:
msg = ""
raise EnsureStrException(msg)
else:
return str(value) |
(Fixed in #2228.) |
Superb, thanks! |
@charliermarsh me and luca should buy you lunch in BKL - ping me on linkedin or whatever and I'm happy to buy you lunch. Thanks for all the great work! |
Taking TC401 and TC202 |
TC100: Check to continueTC101: Too many try blocksTC202: Don't ignore a broad exception without even loggingThe text was updated successfully, but these errors were encountered: