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 e6b90a2 commit bbe43eb
Showing 1 changed file with 43 additions and 22 deletions.
65 changes: 43 additions & 22 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks

files: |
(?x)(
noxfile\.py|
setup\.py|
docs\/.+\.py|
benchmarks\/.+\.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 @@ -14,34 +24,45 @@ repos:
- id: check-merge-conflict
# Check for debugger imports and py37+ `breakpoint()` calls in Python source.
- id: debug-statements
# Don't commit to master branch.
# Don't commit to main branch.
- id: no-commit-to-branch
- repo: https://github.com/psf/black
rev: '24.4.2'

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.3.4"
hooks:
- id: black
- id: ruff
types: [file, python]
args: [--fix, --show-fixes]
- id: ruff-format
types: [file, python]
args: [--config=./pyproject.toml, .]

- repo: https://github.com/codespell-project/codespell
rev: "v2.2.6"
hooks:
- id: codespell
types_or: [asciidoc, python, markdown, rst]
additional_dependencies: [tomli]

- repo: https://github.com/PyCQA/flake8
rev: '7.0.0'
rev: 7.0.0
hooks:
# Run flake8.
- id: flake8
args: [--config=./.flake8]
- repo: https://github.com/pycqa/isort
rev: '5.13.2'
hooks:
- id: isort
name: isort (python)
types: [file, python]
args: [--filter-files]
- id: isort
name: isort (cython)
types: [file, cython]
args: [--filter-files]

- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
types: [file, rst]

- repo: https://github.com/aio-libs/sort-all
rev: "v1.2.0"
rev: v1.2.0
hooks:
- id: sort-all
types: [file, python]

- repo: https://github.com/numpy/numpydoc
rev: v1.7.0
hooks:
- id: sort-all
types: [file, python]
- id: numpydoc-validation
types: [file, python]

0 comments on commit bbe43eb

Please sign in to comment.