-
Notifications
You must be signed in to change notification settings - Fork 59
/
.pre-commit-config.yaml
49 lines (44 loc) · 1.25 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
repos:
# - repo: https://github.com/asottile/pyupgrade
# rev: v2.15.0
# hooks:
# - id: pyupgrade
# args:
# - --py39-plus
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
language_version: python3
args: ["--check", "--diff"]
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["-c", "--diff"]
- 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/", "-ll"]
# - repo: local
# hooks:
# - id: bandit-local
# name: bandit
# entry: bandit
# args: ["-r", "noggin/", "-ll"]
# pass_filenames: false
# language: system
- repo: https://github.com/myint/rstcheck
rev: v6.2.4
hooks:
- id: rstcheck
# Use ignore-messages here until we can put it in the release_notes directly
# https://github.com/rstcheck/rstcheck/issues/167
args: ["-r", "docs", "--ignore-messages=Duplicate implicit target name"]
additional_dependencies: [sphinx]