This repository was archived by the owner on Jan 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +20
-37
lines changed Expand file tree Collapse file tree 1 file changed +20
-37
lines changed Original file line number Diff line number Diff line change 1
1
repos :
2
- - repo : https://github.com/asottile/yesqa # Remove extraneous QA comments
3
- rev : v1.5.0
4
- hooks :
5
- - id : yesqa
6
2
- repo : https://github.com/pre-commit/pre-commit-hooks
7
3
rev : v4.4.0
8
4
hooks :
9
5
- id : check-yaml # Check YAML files for syntax errors
10
6
- 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
29
12
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
34
17
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
41
28
hooks :
42
- - id : docformatter
43
- args :
44
- - -s numpy
45
- - --black
46
- - --in-place
29
+ - id : flake8
You can’t perform that action at this time.
0 commit comments