forked from cheginit/camels_netcdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
86 lines (77 loc) · 2.11 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
82
83
84
85
86
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: requirements-txt-fixer
- id: check-added-large-files
args: ['--maxkb=50000']
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: mixed-line-ending
args: ['--fix=lf']
- repo: https://github.com/hadialqattan/pycln
rev: v1.2.4
hooks:
- id: pycln
name: Find and remove unused import statements
args: [--config=pyproject.toml]
- repo: https://github.com/bwhmather/ssort
rev: v0.11.0
hooks:
- id: ssort
name: Sort top level statements with ssort
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
name: Sort imports with isort
- repo: https://github.com/psf/black
rev: 22.1.0
hooks:
- id: black
name: Autoformat with black
args: [-t, py38, -l, "100"]
additional_dependencies: [ipython, tokenize-rt]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: rst-backticks
name: Check backsticks in rst files
- id: rst-directive-colons
name: Check directives in rst files
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
name: Checks for common misspellings in text files.
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
hooks:
- id: pyupgrade
name: Upgrade synax to python 3.7+ with pyupgrade
args: [--py37-plus]
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
name: Linting with flake8
additional_dependencies:
- flake8-comprehensions
- flake8-builtins
- flake8-blind-except
- flake8-bugbear
- flake8-use-fstring
- flake8-docstrings
- flake8-simplify
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.931
hooks:
- id: mypy
name: Static type checking with mypy
exclude: tests
files: pyscspdm
additional_dependencies:
- types-all