-
Notifications
You must be signed in to change notification settings - Fork 61
/
.pre-commit-config.yaml
82 lines (80 loc) · 2.59 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # Use the ref you want to point at
hooks:
- id: check-merge-conflict
- id: check-yaml
exclude: "tests/data/yaml/bad_simple.yaml"
- id: no-commit-to-branch
args: [--branch, develop, --branch, main]
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.32.0
hooks:
- id: yapf
args: [--in-place, --parallel, --recursive, --style, .yapf-config]
files: "^(trestle|tests|scripts)"
stages: [pre-commit]
additional_dependencies: [toml]
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
args: [--extend-ignore, "P1,C812,C813,C814,C815,C816,W503,W605,B017,B028"]
additional_dependencies:
[
flake8-2020,
flake8-broken-line,
flake8-bugbear,
flake8-builtins,
flake8-commas,
flake8-comprehensions,
flake8-docstrings,
flake8-eradicate,
flake8-import-order,
flake8-mutable,
flake8-pep3101,
flake8-print,
flake8-quotes,
flake8-string-format,
flake8-use-fstring,
pep8-naming,
]
files: "^(tests|scripts)"
exclude: "(oscal/|third_party)"
stages: [pre-commit]
- id: flake8
args: [--extend-ignore, "P1,C812,C813,C814,C815,C816,W503,W605,B017,B028"]
additional_dependencies:
[
flake8-2020,
flake8-broken-line,
flake8-bugbear,
flake8-builtins,
flake8-commas,
flake8-comprehensions,
flake8-docstrings,
flake8-eradicate,
flake8-import-order,
flake8-mutable,
flake8-pep3101,
flake8-print,
flake8-quotes,
flake8-string-format,
flake8-use-fstring,
pep8-naming,
flake8-bandit,
dlint
]
files: "^(trestle)"
exclude: "(oscal/)"
stages: [pre-commit]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
- id: mdformat
exclude: "CHANGELOG.md|docs/contributing/maintainers.md|docs/reference/API|tests/data/author|docs/contributing/index.md|tests/data/jinja_markdown_include|tests/data/jinja_cmd/number_captions_data.md|tests/data/jinja_cmd/number_captions_expected_output.md"
additional_dependencies:
- mdformat-tables
- mdformat-config
- mdformat-frontmatter
- mdformat-gfm