forked from nansencenter/DAPPER
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
52 lines (49 loc) · 1.37 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
exclude: '^$|settings|scripts|docs'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: |
(?x)^(
.*README.md|
.*\.f90
)$
# let flake8 deal with py => dont treat docstrings.
exclude_types: ['html','python']
- id: check-added-large-files
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
- id: debug-statements
exclude: 'dapper/tools/liveplotting.py'
- id: detect-aws-credentials # Notifies if you DONT have credentials
args:
- --allow-missing-credentials
- id: detect-private-key # Notifies if you have private
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: mixed-line-ending
args: ['--fix=no']
- repo: https://github.com/flakeheaven/flakeheaven
rev: 3.2.1
hooks:
- id: flakeheaven
additional_dependencies: [
flake8-docstrings,
flake8-bugbear,
flake8-comprehensions,
flake8-isort,
flake8-builtins,
pep8-naming,
]
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
exclude: |
(?x)^(
examples/.*.py
)$