Skip to content
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

Enable more ruff autofixes #107

Open
jakkdl opened this issue Mar 13, 2024 · 0 comments
Open

Enable more ruff autofixes #107

jakkdl opened this issue Mar 13, 2024 · 0 comments

Comments

@jakkdl
Copy link
Contributor

jakkdl commented Mar 13, 2024

master...use-ruff enabled a bunch of rules that I didn't enable in #105, as I only enabled rules which had direct analogs in existing codemods/autoflake/isort/pyupgrade (as far as I could tell).

They are now commented out in __init__.py:

# ** These are new fixes that Zac had enabled in his branch
# "E731", # don't assign lambdas
# "B007", # unused loop variable
# "B009", # constant getattr
# "B010", # constant setattr
# "B013", # catching 1-tuple
# "PIE807" # reimplementing list
# "PIE810", # repeated startswith/endswith
# "RSE102", # Unnecessary parentheses on raised exception
# "RET502", # `return None` if could return non-None
# "RET504", # Unnecessary assignment before return statement
# "SIM110", # Use any or all
# "TCH005", # remove `if TYPE_CHECKING: pass`
# "PLR1711", # remove useless trailing return
# "TRY201", # `raise` without name
# "FLY002", # static ''.join to f-string
# "NPY001", # deprecated np type aliases
# "RUF010", # f-string conversions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant