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

Eliminar pyupgrade de pre-commit #23

Closed
albertotb opened this issue Oct 24, 2023 · 1 comment · Fixed by #31
Closed

Eliminar pyupgrade de pre-commit #23

albertotb opened this issue Oct 24, 2023 · 1 comment · Fixed by #31

Comments

@albertotb
Copy link
Member

Se añade el hook de pyupgrade, pero ruff ya implementa todas o la mayoría de las reglas astral-sh/ruff#827

@albertotb
Copy link
Member Author

Parece que para eso hay que activar reglas extra de Ruff (https://gist.github.com/aureliojargas/70bd3667afd18f2a4f4e23d7ae5a2915):

select = [
    "UP",    # pyupgrade
    "C401",  # flake8-comprehensions: unnecessary-generator-set
    "C402",  # flake8-comprehensions: unnecessary-generator-dict
    "C403",  # flake8-comprehensions: unnecessary-list-comprehension-set
    "C404",  # flake8-comprehensions: unnecessary-list-comprehension-dict
    "C405",  # flake8-comprehensions: unnecessary-literal-set
    "F632",  # pyflakes: is-literal
    "W605",  # pycodestyle: invalid-escape-sequence
]

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

Successfully merging a pull request may close this issue.

1 participant