1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,65 @@ |
1 |
+[tox] |
|
2 |
+isolated_build = True |
|
3 |
+envlist = clean,py{36,37},report |
|
4 |
+ |
|
5 |
+[gh-actions] |
|
6 |
+python = |
|
7 |
+ 3.6: clean,py36,report |
|
8 |
+ 3.7: clean,py37,report |
|
9 |
+ |
|
10 |
+[pytest] |
|
11 |
+addopts = --flake8 --cov --cov-append --cov-report term-missing |
|
12 |
+ |
|
13 |
+[coverage:paths] |
|
14 |
+source = |
|
15 |
+ qsim |
|
16 |
+ .tox/py*/lib/python*/site-packages/qsim/ |
|
17 |
+ |
|
18 |
+[coverage:run] |
|
19 |
+branch = true |
|
20 |
+parallel = true |
|
21 |
+include = |
|
22 |
+ .tox/py*/lib/python*/site-packages/qsim/* |
|
23 |
+ |
|
24 |
+[coverage:report] |
|
25 |
+show_missing = true |
|
26 |
+precision = 2 |
|
27 |
+ |
|
28 |
+[coverage:xml] |
|
29 |
+output = .coverage.xml |
|
30 |
+ |
|
31 |
+[testenv] |
|
32 |
+deps = .[test] |
|
33 |
+commands = pytest |
|
34 |
+depends = |
|
35 |
+ {py36,py37}: clean |
|
36 |
+ report: {py36,py37} |
|
37 |
+ |
|
38 |
+[testenv:report] |
|
39 |
+deps = coverage |
|
40 |
+skip_install = true |
|
41 |
+commands = |
|
42 |
+ coverage report |
|
43 |
+ coverage xml |
|
44 |
+ |
|
45 |
+[testenv:clean] |
|
46 |
+deps = coverage |
|
47 |
+skip_install = true |
|
48 |
+commands = coverage erase |
|
49 |
+ |
|
50 |
+[flake8] |
|
51 |
+max-line-length = 100 |
|
52 |
+ignore = |
|
53 |
+ E203, |
|
54 |
+ E266, |
|
55 |
+ E501, |
|
56 |
+ W503, |
|
57 |
+per-file-ignores = |
|
58 |
+ qsim/__init__.py: F401 |
|
59 |
+-max-complexity = 18 |
|
60 |
+select = B, C, E, F, W, T4, B9 |
|
61 |
+exclude = |
|
62 |
+ .git, |
|
63 |
+ .tox, |
|
64 |
+ __pycache__, |
|
65 |
+ dist, |