-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
55 lines (55 loc) · 1.64 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
exclude: "external/gcsfs/"
repos:
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
additional_dependencies: ["click==8.0.4"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-added-large-files
args: [--maxkb=250]
exclude: "\
workflows/fine_res_budget/tests/diag.json|\
external/vcm/tests/test_data/test_data.tar"
- id: trailing-whitespace
exclude: "external/radiation"
- id: flake8
name: flake8
language_version: python3
exclude: "__init__.py"
args: [--config, setup.cfg]
- id: flake8
name: flake8 __init__.py files
files: "__init__.py"
# ignore unused import error in __init__.py files
args: ["--ignore=F401,E203", --config, setup.cfg]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.770
hooks:
- id: mypy
args: [
--follow-imports, silent
]
files: |
(?x)^(
external/vcm/vcm/.+ |
external/emulation/.+ |
workflows/dataflow/fv3net/pipelines/restarts_to_zarr/.+ |
workflows/prognostic_c48_run/.+ |
workflows/prognostic_c48_run/tests/.+ |
workflows/prognostic_scream_run/.+ |
workflows/prognostic_scream_run/tests/.+ |
external/fv3fit/fv3fit/.+ |
external/loaders/loaders/.+ |
external/radiation/radiation/.+ |
workflows/diagnostics/fv3net/diagnostics/offline/.+ |
workflows/diagnostics/fv3net/diagnostics/prognostic_run/.+
)$
exclude: |
(?x)^(
.+/conf.py |
.+/setup.py |
.+/conftest.py
)$