-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
52 lines (46 loc) · 1.12 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
[tox]
isolated_build = True
env_list = py
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[testenv]
deps =
matplotlib >=3.7.0
proxsuite >=0.6.1
commands =
python -m unittest discover
[testenv:coverage]
deps =
coverage >=5.5
matplotlib >=3.7.0
qpsolvers >=3.4.0
proxsuite >=0.6.1
commands =
coverage erase
coverage run -m unittest discover
coverage report --include="qpmpc/*"
[testenv:lint]
deps =
black >=23.7.0
matplotlib >=3.7.0
mypy >=0.812
proxsuite >=0.6.1
pylint >=2.8.2
qpsolvers >=3.4.0
ruff >=0.2.2
commands =
black --check --diff qpmpc
mypy qpmpc --config-file {toxinidir}/tox.ini
pylint qpmpc --exit-zero --rcfile={toxinidir}/tox.ini
ruff check qpmpc
ruff format --check qpmpc
[pylint]
; C0103: Argument name doesn't conform to snake_case naming style (qpsolvers uses uppercase for matrices)
; E1130: bad operand type for unary - (false positives fixed in newer versions of pylint, see https://github.com/PyCQA/pylint/issues/2436)
disable=C0103, E1130, import-error
[mypy]
ignore_missing_imports = True