Skip to content

Commit f8b7c30

Browse files
committed
Add upgrade-python recipe
1 parent ab7209f commit f8b7c30

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

justfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ show-benchmark-results:
151151
benchmark-ci:
152152
@uv run --group=benchmark-ci pytest --codspeed
153153

154+
# Upgrade code to latest supported version.
155+
# E.g. find
156+
[group('maintenance')]
157+
upgrade-python MIN_VERSION:
158+
find {docs,src,tests} -name "*.py" -not -path "tests/assets/*" -exec uv run pyupgrade --py{{MIN_VERSION}}-plus {} +
159+
154160
# Run all linters, build docs and tests. Worth running before pushing to Github.
155161
[group('prepush')]
156162
full-check:

0 commit comments

Comments
 (0)