Skip to content

Commit

Permalink
chore: update pre-commit hooks (#120)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.9.2 → v0.9.7](astral-sh/ruff-pre-commit@v0.9.2...v0.9.7)
- [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](codespell-project/codespell@v2.3.0...v2.4.1)
- [github.com/pre-commit/mirrors-mypy: v1.14.1 → v1.15.0](pre-commit/mirrors-mypy@v1.14.1...v1.15.0)
- [github.com/scientific-python/cookie: 2024.08.19 → 2025.01.22](scientific-python/cookie@2024.08.19...2025.01.22)

* add PY005 exception (#121)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bill Little <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and bjlittle authored Feb 24, 2025
1 parent f44a1e6 commit c0c8eb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.9.2"
rev: "v0.9.7"
hooks:
- id: ruff
types: [file, python]
Expand All @@ -49,7 +49,7 @@ repos:
types: [file, python]

- repo: https://github.com/codespell-project/codespell
rev: "v2.3.0"
rev: "v2.4.1"
hooks:
- id: codespell
types_or: [asciidoc, python, markdown, rst]
Expand All @@ -68,7 +68,7 @@ repos:
types: [file, python]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.14.1'
rev: 'v1.15.0'
hooks:
- id: mypy
exclude: 'run_test\.py'
Expand All @@ -80,7 +80,7 @@ repos:
- id: validate-pyproject

- repo: https://github.com/scientific-python/cookie
rev: 2024.08.19
rev: 2025.01.22
hooks:
- id: sp-repo-review
additional_dependencies: ["repo-review[cli]"]
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ ignore = [
"PP002", # Build-system
# https://learn.scientific-python.org/development/guides/style/#PP003
"PP003", # Wheel dependency
# https://learn.scientific-python.org/development/guides/packaging-simple/#package-structure
"PY005", # tests folder
# https://learn.scientific-python.org/development/guides/style/#PY004
"PY004", # Docs folder
# https://learn.scientific-python.org/development/guides/style/#PY007
Expand Down

0 comments on commit c0c8eb6

Please sign in to comment.