From 10df25051ce410d422e5935e55dd7da1e6ba2950 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 17 Feb 2023 15:44:41 +0100 Subject: [PATCH] Switch to ruff pyupgrade --- {{cookiecutter.project_slug}}/.pre-commit-config.yaml | 5 ----- {{cookiecutter.project_slug}}/pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) 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