-
Notifications
You must be signed in to change notification settings - Fork 27
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 rules to Python scripts #215
base: master
Are you sure you want to change the base?
Conversation
Conflicting PR. Removed from build BIOFORMATS-push#335. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build BIOFORMATS-push#336. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build BIOFORMATS-push#337. See the console output for more details.
|
F841 Local variable is assigned to but never used
E401 Multiple imports on one line
E713 Test for membership should be `not in`
E722 Do not use bare `except`
I001 Import block is un-sorted or un-formatted
C405 Unnecessary list literal (rewrite as a set literal)
B007 Loop control variable not used within loop body
RET504 Unnecessary assignment to before `return` statement
PLR0402 Use `from ... import ...` in lieu of alias
PLR5501 Use `elif` instead of `else` then `if`, to reduce indentation
PERF401 Use a list comprehension to create a transformed list
RUF015 Prefer `next(iter(parents.keys()))` over single element slice
RUF022 `__all__` is not sorted
RUF039 First argument to `re.split()` is not raw string
c0ea47e
to
d0c71d0
Compare
This is the last batch. Then I can enable ruff to run in CI.