-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
33 lines (26 loc) · 967 Bytes
/
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
[tox]
# don't forget to change the [gh-actions] 'python' and [testenv] envdir variables and the
# .github/workflows/python-package.yml 'python-version' value when changing the following line
envlist = py{38,27}-{test}, pycodestyle
[gh-actions]
python =
2.7: py27
3.8: py38, pycodestyle
[testenv]
basepython = python3
deps = test: -rrequirements.txt
pycodestyle: pycodestyle
travis: codecov
envdir =
py27: {toxworkdir}/27
py38: {toxworkdir}/38
pycodestyle: {toxworkdir}/pycodestyle
setenv =
PYTHONPATH = {toxinidir}
commands =
test: nosetests ./tests --with-coverage
test: pylint -E pyrtl_extras/
pycodestyle: pycodestyle --max-line-length=100 --ignore=W503 pyrtl_extras/
pycodestyle: pycodestyle --max-line-length=100 --ignore=W503 tests/
# circleci
passenv = CI TRAVIS_BUILD_ID TRAVIS TRAVIS_BRANCH TRAVIS_JOB_NUMBER TRAVIS_PULL_REQUEST TRAVIS_JOB_ID TRAVIS_REPO_SLUG TRAVIS_COMMIT PROCESSOR_ARCHITECTURE