forked from aiidateam/aiida-restapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
75 lines (69 loc) · 1.71 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
# Install pre-commit hooks via:
# pre-commit install
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: end-of-file-fixer
- id: fix-encoding-pragma
- id: mixed-line-ending
- id: trailing-whitespace
- id: check-json
- id: check-yaml
- repo: https://github.com/mgedmin/check-manifest
rev: "0.46"
hooks:
- id: check-manifest
args: [--no-build-isolation]
additional_dependencies: [setuptools>=46.4.0, "reentry"]
- repo: https://github.com/pycqa/isort
rev: 5.8.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 21.5b2
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
hooks:
- id: mypy
additional_dependencies:
- pydantic~=1.8.2
exclude: >
(?x)^(
docs/.*|
tests/.*|
conftest.py
)$
- repo: https://github.com/PyCQA/pylint
rev: v2.8.3
hooks:
- id: pylint
additional_dependencies:
- aiida-core>=1.6,<2.0.0
- sqlalchemy<1.4
- fastapi~=0.65.1
- uvicorn[standard]>=0.12.0,<0.14.0
- pydantic~=1.8.2
- graphene
- lark
- python-jose
- python-multipart
- passlib
- pytest~=3.6,<5.0.0
- sphinx<4
- importlib_metadata~=4.3
exclude: >
(?x)^(
docs/.*|
)$
- repo: local
hooks:
- id: version-number
name: Check version numbers
entry: python ./.github/check_version.py ./setup.json ./aiida_restapi/__init__.py
language: python
language_version: python3
pass_filenames: false
files: "^(setup.json)|(aiida_restapi/__init__.py)"