-
Notifications
You must be signed in to change notification settings - Fork 473
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
Apply ruff suggestions #1479
Open
DimitriPapadopoulos
wants to merge
8
commits into
cea-sec:master
Choose a base branch
from
DimitriPapadopoulos:ruff
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Apply ruff suggestions #1479
Commits on Mar 28, 2024
-
B006 Do not use mutable data structures for argument defaults
Configuration menu - View commit details
-
Copy full SHA for 41e32ce - Browse repository at this point
Copy the full SHA 41e32ceView commit details -
Apply ruff/flake8-logging-format suggestion
G010 Logging statement uses `warn` instead of `warning`
Configuration menu - View commit details
-
Copy full SHA for b5891e9 - Browse repository at this point
Copy the full SHA b5891e9View commit details -
B015 Pointless comparison. Did you mean to assign a value? Otherwise, prepend `assert` or remove it.
Configuration menu - View commit details
-
Copy full SHA for c1e1dbc - Browse repository at this point
Copy the full SHA c1e1dbcView commit details -
B009 Do not call `getattr` with a constant attribute value. It is not any safer than normal property access.
Configuration menu - View commit details
-
Copy full SHA for 4478989 - Browse repository at this point
Copy the full SHA 4478989View commit details -
Apply ruff/pyupgrade suggestion
UP027 Replace unpacked list comprehension with a generator expression
Configuration menu - View commit details
-
Copy full SHA for 6e2bbe7 - Browse repository at this point
Copy the full SHA 6e2bbe7View commit details -
Apply ruff/bugbear suggestions
B020 Loop control variable `...` overrides iterable it iterates
Configuration menu - View commit details
-
Copy full SHA for 38974f0 - Browse repository at this point
Copy the full SHA 38974f0View commit details -
Apply ruff/pycodestyle suggestion
E711 Comparison to `None` should be `cond is None` E711 Comparison to `None` should be `cond is not None`
Configuration menu - View commit details
-
Copy full SHA for 0b74f8b - Browse repository at this point
Copy the full SHA 0b74f8bView commit details -
Apply ruff/pycodestyle suggestion
E713 Test for membership should be `not in`
Configuration menu - View commit details
-
Copy full SHA for 8bf6281 - Browse repository at this point
Copy the full SHA 8bf6281View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.