Skip to content

Commit

Permalink
šŸ‘ TEMPLATE DEVIATIONS: synced local '.pre-commit-config.yaml' with reā€¦
Browse files Browse the repository at this point in the history
ā€¦mote 'templates/.pre-commit-config.yaml'
  • Loading branch information
scitools-ci[bot] authored May 1, 2024
1 parent 5e7ba9b commit 4621a2b
Showing 1 changed file with 14 additions and 35 deletions.
49 changes: 14 additions & 35 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# See https://pre-commit.ci/#configuration
# See https://github.com/scientific-python/cookie#sp-repo-review

ci:
autofix_prs: false
autoupdate_commit_msg: "chore: update pre-commit hooks"


files: |
(?x)(
noxfile\.py|
pyproject\.toml|
setup\.py|
docs\/.+\.py|
benchmarks\/.+\.py|
src\/.+\.py
)
minimum_pre_commit_version: 1.21.0

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v4.5.0
hooks:
# Prevent giant files from being committed.
- id: check-added-large-files
Expand All @@ -36,7 +28,7 @@ repos:
- id: no-commit-to-branch

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.2"
rev: "v0.3.4"
hooks:
- id: ruff
types: [file, python]
Expand All @@ -51,7 +43,13 @@ repos:
types_or: [asciidoc, python, markdown, rst]
additional_dependencies: [tomli]

- repo: https://github.com/adamchainz/blacken-docs
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
types: [file, python]

- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
Expand All @@ -63,27 +61,8 @@ repos:
- id: sort-all
types: [file, python]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.10.0'
- repo: https://github.com/numpy/numpydoc
rev: v1.7.0
hooks:
- id: mypy
exclude: 'noxfile\.py|docs/conf\.py'

- repo: https://github.com/abravalheri/validate-pyproject
rev: "v0.16"
hooks:
- id: validate-pyproject

- repo: https://github.com/scientific-python/cookie
rev: 2024.04.23
hooks:
- id: sp-repo-review
additional_dependencies: ["repo-review[cli]"]
args: ["--show=errskip"]

# TODO: pending the addition of numpydoc, including config file(s).
#- repo: https://github.com/numpy/numpydoc
# rev: v1.7.0
# hooks:
# - id: numpydoc-validation
# types: [file, python]
- id: numpydoc-validation
types: [file, python]

0 comments on commit 4621a2b

Please sign in to comment.