diff --git a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index 9eaf1c7..ba1e2a5 100644 --- a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -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: diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index 11fa470..b8dbfb0 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -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