Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit 4cffe4d

Browse files
committed
update pre-commit
1 parent 84d7f1f commit 4cffe4d

File tree

1 file changed

+20
-37
lines changed

1 file changed

+20
-37
lines changed

.pre-commit-config.yaml

Lines changed: 20 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,29 @@
11
repos:
2-
- repo: https://github.com/asottile/yesqa # Remove extraneous QA comments
3-
rev: v1.5.0
4-
hooks:
5-
- id: yesqa
62
- repo: https://github.com/pre-commit/pre-commit-hooks
73
rev: v4.4.0
84
hooks:
95
- id: check-yaml # Check YAML files for syntax errors
106
- id: debug-statements # Check for debugger imports and py37+ breakpoint()
11-
- id: end-of-file-fixer # Ensure files end in a newline
12-
- id: trailing-whitespace # Trailing whitespace checker
13-
# conflicting with "isort"
14-
# - repo: https://github.com/asottile/reorder-python-imports # Reorder imports
15-
# rev: v3.10.0
16-
# hooks:
17-
# - id: reorder-python-imports
18-
- repo: https://github.com/asottile/pyupgrade # Upgrade Python syntax
19-
rev: v3.7.0
20-
hooks:
21-
- id: pyupgrade
22-
- repo: https://github.com/psf/black # Format Python code
23-
rev: 23.3.0
24-
hooks:
25-
- id: black
26-
args: [--line-length=120]
27-
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.0.275
7+
# - id: end-of-file-fixer # Ensure files end in a newline
8+
# - id: trailing-whitespace # Trailing whitespace checker
9+
- id: no-commit-to-branch # Prevent committing to main / master
10+
- repo: https://github.com/psf/black-pre-commit-mirror
11+
rev: 24.1.1
2912
hooks:
30-
- id: ruff
31-
args: [--line-length=120, '--ignore=E203', --fix, --exit-non-zero-on-fix]
32-
- repo: https://github.com/pycqa/bandit # Check code for common security issues
33-
rev: 1.7.5
13+
- id: black
14+
args: [--line-length=120]
15+
- repo: https://github.com/pycqa/isort
16+
rev: 5.13.2
3417
hooks:
35-
- id: bandit
36-
args:
37-
- -s
38-
- B101
39-
- repo: https://github.com/PyCQA/docformatter # Format docstrings
40-
rev: v1.7.3
18+
- id: isort
19+
name: isort (python)
20+
- id: isort
21+
name: isort (cython)
22+
types: [cython]
23+
- id: isort
24+
name: isort (pyi)
25+
types: [pyi]
26+
- repo: https://github.com/pycqa/flake8
27+
rev: 7.0.0
4128
hooks:
42-
- id: docformatter
43-
args:
44-
- -s numpy
45-
- --black
46-
- --in-place
29+
- id: flake8

0 commit comments

Comments
 (0)