forked from aiida-vasp/aiida-vasp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
53 lines (48 loc) · 1.25 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
exclude: "^(cookiecutters)|(aiida_vasp/test_data)/"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-added-large-files
- id: double-quote-string-fixer
- id: forbid-new-submodules
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.32.0
hooks:
- id: yapf
name: yapf
types: [python]
args: ["-i"]
additional_dependencies: ["toml"]
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
- repo: https://github.com/ikamensh/flynt/
rev: "0.77"
hooks:
- id: flynt
args: ["--line-length=120", "--fail-on-change"]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
types: [python]
language: system
exclude: |
(?x)(
^tutorials/|
^examples/
)
- id: sphinx-lint
name: Sphinx lint
description: "Searches for common typos in sphinx-flavored rst files."
files: '\.rst$'
entry: sphinx-lint --disable=horizontal-tab
language: python