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 - --markdown-linebreak-ext=md
- id: check-executables-have-shebangs - id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable - 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 - repo: https://github.com/adamchainz/django-upgrade
rev: 1.12.0 rev: 1.12.0
hooks: hooks:

View file

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