-
Notifications
You must be signed in to change notification settings - Fork 21
/
.pre-commit-config.yaml
38 lines (34 loc) · 1.02 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
exclude: |
(?x)(
^mpcontribs-portal/mpcontribs/users/|
^binder/|
^mpcontribs-ingester/|
^mpcontribs-api/mpcontribs/api/redox_thermo_csp/
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: check-merge-conflict
- id: fix-encoding-pragma
- id: forbid-new-submodules
- id: requirements-txt-fixer
- repo: https://github.com/awslabs/cfn-python-lint
rev: v0.15.0
hooks:
- id: cfn-python-lint
files: cloudformation/.*\.(json|yml|yaml)$
args: ["--ignore-checks=E3030,E3001,E3002,E3012"]
#- repo: https://gitlab.com/pycqa/flake8
# rev: 3.7.9
# hooks:
# - id: flake8
# args: [--max-line-length=99]
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.7