forked from qpsolvers/qpbenchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
44 lines (38 loc) · 1.04 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
[tox]
isolated_build = True
envlist = lint-py{37,38,39,310}
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows
[testenv]
commands =
python -m unittest discover
[testenv:lint]
deps =
black >=22.10.0
ruff >=0.0.220
matplotlib >=3.6.2
mypy >=0.812
pylint >=2.8.2
commands =
black --check --diff qpbenchmark
ruff qpbenchmark
pylint qpbenchmark --exit-zero --rcfile={toxinidir}/tox.ini
mypy qpbenchmark --config-file {toxinidir}/tox.ini
[pylint]
; C0103: Argument name doesn't conform to snake_case naming style (we use uppercase for matrices)
; R0801: Similar lines in * files (test set settings and tolerance definitions look alike)
; R0913: Too many arguments (our functions have more than 5 arguments)
; R0914: Too many local variables (some functions have more than 15 local variables)
disable = C0103, R0801, R0913, R0914
[mypy]
ignore_missing_imports = True
warn_no_return = True