-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
119 lines (111 loc) · 3.28 KB
/
tox.ini
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
#
# Copyright (c) 2020-2024 Julian Heinovski <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
[tox]
# TODO py310
envlist = py37,py38,py39
isolated_build = true
[testenv]
description = Running testenv for {basepython}
install_dev_deps = true
install_project_deps = true
require_locked_deps = true
# whitelist_externals = poetry
commands =
python -V
flake8 src tests scripts
isort --check --diff src tests scripts
# black --check --diff src tests # TODO black
# pylint src tests scripts # TODO pylint
pydocstyle src tests scripts
python -c 'import plafosim;'
pytest -v tests/unit_tests/
[testenv:test_cf_models]
description = Running testenv:test_cf_models for {basepython}
install_dev_deps = true
install_project_deps = true
require_locked_deps = true
# whitelist_externals = poetry
commands =
python -V
pytest -v tests/integration/test_cf_models.py
[testenv:test_lc_models]
description = Running testenv:test_lc_models for {basepython}
install_dev_deps = true
install_project_deps = true
require_locked_deps = true
# whitelist_externals = poetry
commands =
python -V
pytest -v tests/integration/test_lc_models.py
[testenv:test_departure]
description = Running testenv:test_departure for {basepython}
install_dev_deps = true
install_project_deps = true
require_locked_deps = true
# whitelist_externals = poetry
commands =
python -V
pytest -v tests/integration/test_departure.py
[testenv:test_simulation]
description = Running testenv:test_simulation for {basepython}
install_dev_deps = true
install_project_deps = true
require_locked_deps = true
# whitelist_externals = poetry
commands =
python -V
pytest -v tests/integration/test_simulation.py
# TODO move to pyproject.toml once supported
[flake8]
jobs = 1
max-complexity = 10
ignore=
# C901 is too complex
C901,
# E265 block comment should start with '# '
E265,
# E266 too many leading '#' for block comment
E266,
# E402,
# E501 E501 line too long (> 120 characters)
E501,
# W503 line break before binary operator
W503,
# W504 line break after binary operator
W504,
[pydocstyle]
ignore =
# D100: Missing docstring in public module
D100,
# D103: Missing docstring in public function!!!
D103,
# D104: Missing docstring in public package
D104,
# D200: One-line docstring should fit on one line with quotes
D200,
# D202: No blank lines allowed after function docstring
D202,
# D203: 1 blank line required before class docstring
D203,
# D212: Multi-line docstring summary should start at the first line
D212,
# D401: First line should be in imperative mood; try rephrasing
D401,
# D413: Missing blank line after last section
D413,