Skip to content

Commit ed2ae2b

Browse files
committed
Update testing configuration
1 parent 60b3ce1 commit ed2ae2b

3 files changed

Lines changed: 54 additions & 27 deletions

File tree

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
- stage: lint
1717
env: TOXENV=manifest
1818
- env: TOXENV=flake8
19-
- env: TOXENV=pylint
19+
- env: TOXENV=pyroma
20+
- env: TOXENV=xenon
21+
- env: TOXENV=vulture
2022
# docs stage
2123
- stage: docs
2224
env: TOXENV=doc8
@@ -28,7 +30,9 @@ jobs:
2830

2931
matrix:
3032
allow_failures:
31-
- env: TOXENV=pylint
33+
- env: TOXENV=pyroma
34+
- env: TOXENV=xenon
35+
- env: TOXENV=vulture
3236

3337
install:
3438
- sh -c 'if [ "$TOXENV" = "py" ]; then pip install tox codecov; else pip install tox; fi'

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,7 @@ def get_long_description():
8686
package_dir={'': 'src'},
8787
install_requires=INSTALL_REQUIRES,
8888
entry_points=ENTRY_POINTS,
89+
classifiers=CLASSIFIERS,
90+
keywords=KEYWORDS,
91+
zip_safe=False,
8992
)

tox.ini

Lines changed: 45 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ envlist =
33
coverage-clean
44
manifest
55
flake8
6-
# pylint
6+
vulture
7+
xenon
8+
pyroma
79
readme
810
doc8
911
docs
@@ -31,12 +33,43 @@ deps = check-manifest
3133
skip_install = true
3234
commands = check-manifest
3335

34-
[testenv:coverage-report]
35-
deps = coverage
36+
[testenv:flake8]
37+
basepython = python3
3638
skip_install = true
39+
deps =
40+
flake8
41+
flake8-docstrings>=0.2.7
42+
flake8-import-order>=0.9
43+
pep8-naming
44+
flake8-colors
3745
commands =
38-
coverage combine
39-
coverage report
46+
flake8 src/bio2bel_go/ tests/ setup.py
47+
48+
[testenv:vulture]
49+
deps = vulture
50+
skip_install = true
51+
commands = vulture src/bio2bel_go/
52+
description = Run the vulture tool to look for dead code.
53+
54+
[testenv:xenon]
55+
deps = xenon
56+
skip_install = true
57+
commands = xenon --max-average A --max-modules A --max-absolute B .
58+
description = Run the xenon tool to monitor code complexity.
59+
60+
[testenv:mypy]
61+
deps = mypy
62+
skip_install = true
63+
commands = mypy --ignore-missing-imports src/bio2bel_go/
64+
description = Run the mypy tool to check static typing on the project.
65+
66+
[testenv:pyroma]
67+
deps =
68+
pygments
69+
pyroma
70+
skip_install = true
71+
commands = pyroma --min=10 .
72+
description = Run the pyroma tool to check the project's package friendliness.
4073
4174
[testenv:readme]
4275
commands = rst-lint README.rst
@@ -58,26 +91,6 @@ commands =
5891
cat {envtmpdir}/build/coverage/c.txt
5992
cat {envtmpdir}/build/coverage/python.txt
6093
61-
[testenv:flake8]
62-
basepython = python3
63-
skip_install = true
64-
deps =
65-
flake8
66-
flake8-docstrings>=0.2.7
67-
flake8-import-order>=0.9
68-
pep8-naming
69-
flake8-colors
70-
commands =
71-
flake8 src/bio2bel_go/ tests/ setup.py
72-
73-
[testenv:pylint]
74-
basepython = python3
75-
deps =
76-
pyflakes
77-
pylint
78-
commands =
79-
pylint src/bio2bel_go
80-
8194
[testenv:doc8]
8295
basepython = python3
8396
skip_install = true
@@ -87,6 +100,13 @@ deps =
87100
commands =
88101
doc8 docs/source/ README.rst
89102
103+
[testenv:coverage-report]
104+
deps = coverage
105+
skip_install = true
106+
commands =
107+
coverage combine
108+
coverage report
109+
90110
####################
91111
# Deployment tools #
92112
####################

0 commit comments

Comments
 (0)