Skip to content

Commit

Permalink
Merge pull request #821 from jarrodmillman/precommit-2-25
Browse files Browse the repository at this point in the history
Update pre-commit
  • Loading branch information
jarrodmillman authored Feb 7, 2025
2 parents 17b954a + bfe7895 commit 4c253f1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ d8966d848af75751823e825eb76c5bbff58f5c07
4902d468c9606836b26b393379df4f49208ea847
1fd0ce6759be32be38bbfab32e83d157a82dfe25
406488494019fb199474fea7f1694e9f0d0347bc
968df447681ba7d33c9088d4446b8a92ec0a1389
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ repos:
args: [--no-pycodestyle, --max-line-length=88]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: f0b5944bef86f50d875305821a0ab0d8c601e465 # frozen: v0.8.4
rev: d7f0995508bdaeb0a1f4a838500d6a0a1fc6ec7b # frozen: v0.9.5
hooks:
- id: ruff
args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "648203cec3e499b9eff54a24d6cf4b25ce02eb1e" # frozen: v1.14.0
rev: "f40886d54c729f533f864ed6ce584e920feb0af7" # frozen: v1.15.0
hooks:
- id: mypy
additional_dependencies:
Expand Down Expand Up @@ -73,7 +73,7 @@ repos:
)
- repo: https://github.com/codespell-project/codespell
rev: 193cd7d27cd571f79358af09a8fb8997e54f8fff # frozen: v2.3.0
rev: 63c8f8312b7559622c0d82815639671ae42132ac # frozen: v2.4.1
hooks:
- id: codespell
args: ["-w", "-L", "ans,nd,sav,mke,ags,mot,coo,whos,manuel"]
Expand Down
5 changes: 4 additions & 1 deletion pyximages/numpy_fancy_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ def framebox(
for ny in range(nrows):
y = (ncols - ny - 0.5) * boxsize
c.text(
x, y, rf"\textbf{{{ny*10+nx}}}", [text.halign.center, text.valign.middle]
x,
y,
rf"\textbf{{{ny * 10 + nx}}}",
[text.halign.center, text.valign.middle],
)

parwidth = 10.6
Expand Down
5 changes: 4 additions & 1 deletion pyximages/numpy_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ def framebox(
for ny in range(nrows):
y = (ncols - ny - 0.5) * boxsize
c.text(
x, y, rf"\textbf{{{ny*10+nx}}}", [text.halign.center, text.valign.middle]
x,
y,
rf"\textbf{{{ny * 10 + nx}}}",
[text.halign.center, text.valign.middle],
)

parwidth = 6
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ Pillow
pooch
ipython
pickleshare
pre-commit==4.0.1
pre-commit==4.1.0
requests
sphinxcontrib-jquery

0 comments on commit 4c253f1

Please sign in to comment.