mirror of
https://github.com/Crocmagnon/cookiecutter-django.git
synced 2024-11-23 23:28:03 +01:00
Switch to ruff pyupgrade
This commit is contained in:
parent
4ac3f9d419
commit
10df25051c
2 changed files with 1 additions and 6 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue