diff --git a/pyproject.toml b/pyproject.toml index a25e78ec..1dc1ff1a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,7 +64,7 @@ enabler = [ type = [ # upstream - # Exclude PyPy from type checks (python/mypy#20454 jaraco/skeleton#187) + # Exclude PyPy from type checks (python/mypy#20454 jaraco/skeleton#187) "pytest-mypy >= 1.0.1; platform_python_implementation != 'PyPy'", # local diff --git a/ruff.toml b/ruff.toml index 63c0825f..5dba83a8 100644 --- a/ruff.toml +++ b/ruff.toml @@ -5,38 +5,27 @@ extend-select = [ "C901", # complex-structure "I", # isort "PERF401", # manual-list-comprehension + "UP", # pyupgrade (Code modernization for strings, annotations, conditions, ...) # Ensure modern type annotation syntax and best practices # Not including those covered by type-checkers or exclusive to Python 3.11+ "FA", # flake8-future-annotations "F404", # late-future-import "PYI", # flake8-pyi - "UP006", # non-pep585-annotation - "UP007", # non-pep604-annotation - "UP010", # unnecessary-future-import - "UP035", # deprecated-import - "UP037", # quoted-annotation - "UP043", # unnecessary-default-type-args # local ] ignore = [ # upstream + "UP015", # redundant-open-modes, explicit is preferred # Typeshed rejects complex or non-literal defaults for maintenance and testing reasons, # irrelevant to this project. "PYI011", # typed-argument-default-in-stub # https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules "W191", - "E111", - "E114", - "E117", "D206", "D300", - "Q000", - "Q001", - "Q002", - "Q003", "COM812", "COM819",