-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
91 lines (86 loc) · 2.43 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude : ^src/static/ucsschool_id_connector/(redoc.standalone-.*.js|swagger-ui-bundle-.*.min.js|swagger-ui-.*.css)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-json
- id: check-xml
- id: check-yaml
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: python-check-blanket-noqa
- id: python-no-eval
- id: python-no-log-warn
- id: python-use-type-annotations
- id: rst-backticks
#- repo: https://github.com/asottile/dead
# rev: v1.3.0
# hooks:
# - id: dead
- repo: https://github.com/PyCQA/doc8
rev: 'v1.0.0'
hooks:
- id: doc8
args: ['--ignore=D001'] # D001 Line too long
#- repo: https://github.com/twolfson/restructuredtext-lint
# rev: '1.3.2'
# hooks:
# - id: rst-lint
#- repo: https://github.com/Lucas-C/pre-commit-hooks-markup
# rev: v1.0.0
# hooks:
# - id: rst-linter
#- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
# rev: v1.1.0
# hooks:
# - id: python-safety-dependencies-check
#- repo: git://github.com/detailyang/pre-commit-shell
# rev: v1.0.6
# hooks:
# - id: shell-lint
# args: [--format=json]
- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config
args: [--application-directories, src]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
entry: isort
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
entry: black --config .black
language_version: python3.11
#- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
# rev: v0.1.0
# hooks:
# - id: dockerfilelint
# stages: [commit]
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
entry: bandit
exclude: ^src/tests|product_tests
#- repo: https://github.com/PyCQA/pydocstyle
# rev: 5.0.1
# hooks:
# - id: pydocstyle
default_language_version:
python: python3.11