Switch to ruff pyupgrade

This commit is contained in:
Gabriel Augendre 2023-02-17 15:44:41 +01:00
parent 4ac3f9d419
commit 10df25051c
2 changed files with 1 additions and 6 deletions

View file

@ -25,11 +25,6 @@ repos:
- --markdown-linebreak-ext=md
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--{{ cookiecutter.python_version_slug }}-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.12.0
hooks:

View file

@ -64,13 +64,13 @@ select = [
"PD", # pandas-vet
"PGH", # pygrep-hooks
"PL", # pylint
"UP", # pyupgrade
"TRY", # tryceratops
"RUF", # ruff-specific rules
]
unfixable = ["T20", "RUF001", "RUF002", "RUF003"]
ignore = [
"UP", # pyupgrade
"YTT", # flake8-2020
"ANN", # flake8-annotations
"BLE", # flake8-blind-except