Skip to content

Commit ce83089

Browse files
Remove pyupgrade from the codebase (#286)
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.
1 parent ff6bb84 commit ce83089

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

justfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,6 @@ show-benchmark-results:
140140
benchmark-ci:
141141
@uv run --group=benchmark-ci pytest --codspeed
142142

143-
# Upgrade Python code to the supplied version. (E.g. just upgrade 310)
144-
[group('maintenance')]
145-
upgrade-python MIN_VERSION:
146-
@find {docs,src,tests} -name "*.py" -not -path "tests/assets/*" -exec uv run pyupgrade --py{{MIN_VERSION}}-plus --exit-zero-even-if-changed {} +
147-
@just autofix-python
148-
@just format-python
149-
150143
# Run all linters, build docs and tests. Worth running before pushing to Github.
151144
[group('prepush')]
152145
full-check:

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ dev = [
5858
"requests==2.32.3",
5959
"sqlalchemy==2.0.35",
6060
"google-cloud-audit-log==0.3.0",
61-
"pyupgrade>=3.21.0",
6261
]
6362
docs = [
6463
"sphinx>=7.4.7",

0 commit comments

Comments
 (0)