forked from aiidateam/aiida-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
129 lines (117 loc) · 3.27 KB
/
pyproject.toml
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[build-system]
requires = ["setuptools>=40.8.0,<50", "wheel", "reentry~=1.3", "fastentrypoints~=0.12"]
build-backend = "setuptools.build_meta:__legacy__"
[tool.pylint.master]
load-plugins = "pylint_django"
[tool.pylint.format]
max-line-length = 120
[tool.pylint.messages_control]
disable = [
"bad-continuation",
"bad-option-value",
"cyclic-import",
"django-not-available",
"duplicate-code",
"import-outside-toplevel",
"inconsistent-return-statements",
"locally-disabled",
"logging-fstring-interpolation",
"no-else-raise",
"too-few-public-methods",
"too-many-ancestors",
"too-many-arguments",
"too-many-instance-attributes",
"useless-suppression",
]
[tool.pylint.basic]
good-names = [
"_",
"x",
"y",
"z",
"i",
"j",
"k",
"pk",
"TemplatereplacerCalculation",
"ArithmeticAddCalculation",
"MultiplyAddWorkChain"
]
no-docstring-rgx = "^_,setUp,tearDown"
docstring-min-length = 5
[tool.pylint.design]
max-locals = 20
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--benchmark-skip"
testpaths = [
"tests",
]
filterwarnings = [
"ignore::DeprecationWarning:babel:",
"ignore::DeprecationWarning:django:",
"ignore::DeprecationWarning:frozendict:",
"ignore::DeprecationWarning:sqlalchemy:",
"ignore::DeprecationWarning:yaml:",
"ignore::DeprecationWarning:pymatgen:",
"ignore::DeprecationWarning:jsonbackend:",
"ignore::DeprecationWarning:reentry:",
"ignore::DeprecationWarning:pkg_resources:",
]
markers = [
"sphinx: set parameters for the sphinx `app` fixture"
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py37-django
[testenv]
usedevelop=True
[testenv:py{36,37,38,39}-{django,sqla}]
deps =
py36: -rrequirements/requirements-py-3.6.txt
py37: -rrequirements/requirements-py-3.7.txt
py38: -rrequirements/requirements-py-3.8.txt
py39: -rrequirements/requirements-py-3.9.txt
setenv =
django: AIIDA_TEST_BACKEND = django
sqla: AIIDA_TEST_BACKEND = sqlalchemy
commands = pytest {posargs}
[testenv:py{36,37,38,39}-docs-{clean,update}]
description =
clean: Build the documentation (remove any existing build)
update: Build the documentation (modify any existing build)
deps =
py36: -rrequirements/requirements-py-3.6.txt
py37: -rrequirements/requirements-py-3.7.txt
py38: -rrequirements/requirements-py-3.8.txt
py38: -rrequirements/requirements-py-3.9.txt
passenv = RUN_APIDOC
setenv =
update: RUN_APIDOC = False
changedir = docs
whitelist_externals = make
commands =
clean: make clean
make debug
[testenv:py{36,37,38,39}-docs-live]
# tip: remove apidocs before using this feature (`cd docs; make clean`)
description = Build the documentation and launch browser (with live updates)
deps =
py36: -rrequirements/requirements-py-3.6.txt
py37: -rrequirements/requirements-py-3.7.txt
py38: -rrequirements/requirements-py-3.8.txt
py39: -rrequirements/requirements-py-3.9.txt
sphinx-autobuild
setenv =
RUN_APIDOC = False
commands =
sphinx-autobuild \
--re-ignore build/.* \
--port 0 --open-browser \
-n -b {posargs:html} docs/source/ docs/build/{posargs:html}
[testenv:py{36,37,38,39}-pre-commit]
description = Run the pre-commit checks
extras = all
commands = pre-commit run {posargs}
"""