From f2f9739b46a3f5719e8249cad12e987cba090207 Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Thu, 18 Dec 2025 08:08:38 +1300 Subject: [PATCH] Remove `pyupgrade` from the codebase This is re-implemented with the `UP` Ruff rules. Sometimes there is a slight parity lag (i.e. rules exist in `pyupgrade` that don't exist in Ruff) but that's usually only during the pre-release phase of a new Python version while everyone sorts things out behind-the-scenes. --- justfile | 7 ------- pyproject.toml | 1 - 2 files changed, 8 deletions(-) diff --git a/justfile b/justfile index bc2b6602..6cfff8cd 100644 --- a/justfile +++ b/justfile @@ -132,13 +132,6 @@ show-benchmark-results: benchmark-ci: @uv run --group=benchmark-ci pytest --codspeed -# Upgrade Python code to the supplied version. (E.g. just upgrade 310) -[group('maintenance')] -upgrade-python MIN_VERSION: - @find {docs,src,tests} -name "*.py" -not -path "tests/assets/*" -exec uv run pyupgrade --py{{MIN_VERSION}}-plus --exit-zero-even-if-changed {} + - @just autofix-python - @just format-python - # Run all linters, build docs and tests. Worth running before pushing to Github. [group('prepush')] full-check: diff --git a/pyproject.toml b/pyproject.toml index 73e16214..872d2481 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,7 +58,6 @@ dev = [ "requests==2.32.3", "sqlalchemy==2.0.35", "google-cloud-audit-log==0.3.0", - "pyupgrade>=3.21.0", ] docs = [ "sphinx>=7.4.7",