forked from fedora-infra/fasjson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
56 lines (50 loc) · 1.29 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
repos:
# - repo: https://github.com/asottile/pyupgrade
# rev: v2.15.0
# hooks:
# - id: pyupgrade
# args:
# - --py36-plus
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
language_version: python3
args: ["--check"]
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["-c"]
- repo: https://github.com/Lucas-C/pre-commit-hooks-bandit
rev: v1.0.6
hooks:
- id: python-bandit-vulnerability-check
alias: bandit
args: ["-r", "noggin/", "-x", "noggin/tests/", "-ll"]
# - repo: local
# hooks:
# - id: bandit-local
# name: bandit
# entry: bandit
# args: ["-r", "noggin/", "-x", "noggin/tests/", "-ll"]
# pass_filenames: false
# language: system
- repo: https://github.com/myint/rstcheck
rev: v6.2.0
hooks:
- id: rstcheck
#args: ["-r", "docs"]
additional_dependencies: [sphinx]
- repo: local
hooks:
- id: liccheck
name: liccheck
entry: ./devel/run-liccheck.sh
files: "(pyproject.toml|poetry.lock)"
pass_filenames: false
language: script