Browse code

ignore E741: ambiguous variable name

Bas Nijholt authored on 07/08/2020 13:36:11
Showing 1 changed files
... ...
@@ -54,7 +54,7 @@ commands = pre-commit run --all-files --show-diff-on-failure
54 54
 
55 55
 [flake8]
56 56
 max-line-length = 100
57
-ignore = E501, W503, E203, E266
57
+ignore = E501, W503, E203, E266, E741
58 58
 max-complexity = 18
59 59
 select = B, C, E, F, W, T4, B9
60 60
 exclude = .git, .tox, __pycache__, dist
Browse code

add flaky to tests that sometimes fail

Bas Nijholt authored on 17/12/2019 21:06:25
Showing 1 changed files
... ...
@@ -65,4 +65,4 @@ include_trailing_comma=True
65 65
 force_grid_wrap=0
66 66
 use_parentheses=True
67 67
 line_length=88
68
-known_third_party=PIL,atomicwrites,holoviews,matplotlib,nbconvert,numpy,pytest,scipy,setuptools,skopt,sortedcollections,sortedcontainers
68
+known_third_party=PIL,atomicwrites,flaky,holoviews,matplotlib,nbconvert,numpy,pytest,scipy,setuptools,skopt,sortedcollections,sortedcontainers
Browse code

add -vvv to identify the test that takes ∞ time

Bas Nijholt authored on 17/12/2019 16:49:01
Showing 1 changed files
... ...
@@ -7,7 +7,7 @@ envlist = clean,py{36,37,38}-{mindeps,alldeps},report,pre-commit
7 7
 testpaths = adaptive
8 8
 addopts =
9 9
   --durations=5
10
-  --cov --cov-append --cov-fail-under=70 --cov-report=
10
+  --cov --cov-append --cov-fail-under=70 -vvv --cov-report=
11 11
 norecursedirs =
12 12
   docs
13 13
 
Browse code

skip notebook integration tests if ipykernel not installed

Joseph Weston authored on 17/12/2019 13:58:18
Showing 1 changed files
... ...
@@ -65,4 +65,4 @@ include_trailing_comma=True
65 65
 force_grid_wrap=0
66 66
 use_parentheses=True
67 67
 line_length=88
68
-known_third_party=PIL,atomicwrites,holoviews,ipykernel,matplotlib,nbconvert,numpy,pytest,scipy,setuptools,skopt,sortedcollections,sortedcontainers,zmq
68
+known_third_party=PIL,atomicwrites,holoviews,matplotlib,nbconvert,numpy,pytest,scipy,setuptools,skopt,sortedcollections,sortedcontainers
Browse code

rename "bare" tox environment

Joseph Weston authored on 17/12/2019 13:39:31
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 
2 2
 [tox]
3 3
 isolated_build = True
4
-envlist = clean,py{36,37,38},bare{36,37,38},report,pre-commit
4
+envlist = clean,py{36,37,38}-{mindeps,alldeps},report,pre-commit
5 5
 
6 6
 [pytest]
7 7
 testpaths = adaptive
... ...
@@ -29,19 +29,11 @@ precision = 2
29 29
 output = .coverage.xml
30 30
 
31 31
 [testenv]
32
-deps = .[testing,other]
32
+deps =
33
+  mindeps: .[testing]
34
+  alldeps: .[testing,other]
33 35
 commands =
34 36
   pytest
35
-depends =
36
-  {py36,py37,py38}: clean
37
-  report: {py36,py37,py38}
38
-
39
-[testenv:bare]
40
-deps = .[testing]
41
-commands =
42
-  pytest
43
-depends =
44
-  {bare36,bare37,bare38}: clean
45 37
 
46 38
 [testenv:report]
47 39
 deps = coverage
Browse code

add bare dependencies test

Bas Nijholt authored on 17/12/2019 11:43:16
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 
2 2
 [tox]
3 3
 isolated_build = True
4
-envlist = clean,py{36,37,38},report,pre-commit
4
+envlist = clean,py{36,37,38},bare{36,37,38},report,pre-commit
5 5
 
6 6
 [pytest]
7 7
 testpaths = adaptive
... ...
@@ -36,6 +36,13 @@ depends =
36 36
   {py36,py37,py38}: clean
37 37
   report: {py36,py37,py38}
38 38
 
39
+[testenv:bare]
40
+deps = .[testing]
41
+commands =
42
+  pytest
43
+depends =
44
+  {bare36,bare37,bare38}: clean
45
+
39 46
 [testenv:report]
40 47
 deps = coverage
41 48
 skip_install = true
Browse code

upload coverage and include Python 3.8

Bas Nijholt authored on 16/12/2019 21:37:05
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 
2 2
 [tox]
3 3
 isolated_build = True
4
-envlist = clean,py{36,37},report,pre-commit
4
+envlist = clean,py{36,37,38},report,pre-commit
5 5
 
6 6
 [pytest]
7 7
 testpaths = adaptive
... ...
@@ -33,8 +33,8 @@ deps = .[testing,other]
33 33
 commands =
34 34
   pytest
35 35
 depends =
36
-  {py36,py37}: clean
37
-  report: {py36,py37}
36
+  {py36,py37,py38}: clean
37
+  report: {py36,py37,py38}
38 38
 
39 39
 [testenv:report]
40 40
 deps = coverage
Browse code

remove pytest.ini and put settings in tox.ini

Bas Nijholt authored on 16/12/2019 19:15:10
Showing 1 changed files
... ...
@@ -4,6 +4,7 @@ isolated_build = True
4 4
 envlist = clean,py{36,37},report,pre-commit
5 5
 
6 6
 [pytest]
7
+testpaths = adaptive
7 8
 addopts =
8 9
   --durations=5
9 10
   --cov --cov-append --cov-fail-under=70 --cov-report=
Browse code

add tox.ini

Bas Nijholt authored on 16/12/2019 19:10:12
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,68 @@
1
+
2
+[tox]
3
+isolated_build = True
4
+envlist = clean,py{36,37},report,pre-commit
5
+
6
+[pytest]
7
+addopts =
8
+  --durations=5
9
+  --cov --cov-append --cov-fail-under=70 --cov-report=
10
+norecursedirs =
11
+  docs
12
+
13
+[coverage:paths]
14
+source =
15
+  adaptive
16
+  .tox/py*/lib/python*/site-packages
17
+
18
+[coverage:run]
19
+branch = true
20
+parallel = true
21
+source = adaptive
22
+
23
+[coverage:report]
24
+show_missing = true
25
+precision = 2
26
+
27
+[coverage:xml]
28
+output = .coverage.xml
29
+
30
+[testenv]
31
+deps = .[testing,other]
32
+commands =
33
+  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
+[testenv:pre-commit]
51
+skip_install = true
52
+deps = pre-commit
53
+commands = pre-commit run --all-files --show-diff-on-failure
54
+
55
+[flake8]
56
+max-line-length = 100
57
+ignore = E501, W503, E203, E266
58
+max-complexity = 18
59
+select = B, C, E, F, W, T4, B9
60
+exclude = .git, .tox, __pycache__, dist
61
+
62
+[isort]
63
+multi_line_output=3
64
+include_trailing_comma=True
65
+force_grid_wrap=0
66
+use_parentheses=True
67
+line_length=88
68
+known_third_party=PIL,atomicwrites,holoviews,ipykernel,matplotlib,nbconvert,numpy,pytest,scipy,setuptools,skopt,sortedcollections,sortedcontainers,zmq