1
+ exclude : " .*tests\/ fixtures.*"
1
2
repos :
3
+ - repo : https://github.com/pre-commit/pre-commit-hooks
4
+ rev : v4.5.0
5
+ hooks :
6
+ - id : check-yaml
7
+ - id : debug-statements
8
+ - id : end-of-file-fixer
9
+ - id : trailing-whitespace
10
+ - repo : https://github.com/charliermarsh/ruff-pre-commit
11
+ # Ruff version.
12
+ rev : " v0.3.3"
13
+ hooks :
14
+ - id : ruff
15
+ args : [--fix, --exit-non-zero-on-fix]
16
+ types : [python]
17
+ - repo : https://github.com/pre-commit/mirrors-prettier
18
+ rev : v4.0.0-alpha.8
19
+ hooks :
20
+ - id : prettier
21
+ - repo : https://github.com/rhysd/actionlint
22
+ rev : v1.6.27
23
+ hooks :
24
+ - id : actionlint-docker
25
+ name : Actionlint
2
26
- repo : local
3
27
hooks :
4
- - id : black
5
- name : black
6
- entry : black
28
+ - id : bandit
29
+ name : bandit
30
+ entry : bandit
7
31
language : system
8
32
types : [python]
9
33
require_serial : true
34
+ args : ["-c", "pyproject.toml"]
10
35
- id : check-added-large-files
11
36
name : Check for added large files
12
37
entry : check-added-large-files
@@ -27,38 +52,16 @@ repos:
27
52
language : system
28
53
types : [text]
29
54
stages : [commit, push, manual]
30
- - id : flake8
31
- name : flake8
32
- entry : flake8
33
- language : system
34
- types : [python]
35
- exclude : " ^(test/*|examples/*|noxfile.py)"
36
- require_serial : true
37
- args : ["--config=.flake8"]
38
55
- id : pyupgrade
39
56
name : pyupgrade
40
57
description : Automatically upgrade syntax for newer versions.
41
58
entry : pyupgrade
42
59
language : system
43
60
types : [python]
44
- args : [--py37-plus]
45
- - id : reorder-python-imports
46
- name : Reorder python imports
47
- entry : reorder-python-imports
48
- language : system
49
- types : [python]
50
- args : [--application-directories=src]
61
+ args : [--py311-plus]
51
62
- id : trailing-whitespace
52
63
name : Trim Trailing Whitespace
53
64
entry : trailing-whitespace-fixer
54
65
language : system
55
66
types : [text]
56
67
stages : [commit, push, manual]
57
- - repo : https://github.com/pre-commit/mirrors-prettier
58
- rev : v2.7.1
59
- hooks :
60
- - id : prettier
61
- - repo : https://github.com/rhysd/actionlint
62
- rev : v1.6.15
63
- hooks :
64
- - id : actionlint-docker
0 commit comments