commit
28787fe9f6
2
Makefile
2
Makefile
|
@ -29,7 +29,7 @@ lint-roll:
|
||||||
$(MAKE) lint
|
$(MAKE) lint
|
||||||
|
|
||||||
test:
|
test:
|
||||||
py.test tests
|
pytest tests
|
||||||
|
|
||||||
test-all:
|
test-all:
|
||||||
tox
|
tox
|
||||||
|
|
|
@ -4,4 +4,4 @@ python_paths= .
|
||||||
xfail_strict=true
|
xfail_strict=true
|
||||||
|
|
||||||
[pytest-watch]
|
[pytest-watch]
|
||||||
runner= py.test --failed-first --maxfail=1 --no-success-flaky-report
|
runner= pytest --failed-first --maxfail=1 --no-success-flaky-report
|
||||||
|
|
12
setup.py
12
setup.py
|
@ -5,9 +5,10 @@ from setuptools import (
|
||||||
find_packages,
|
find_packages,
|
||||||
)
|
)
|
||||||
|
|
||||||
extras_require={
|
extras_require = {
|
||||||
'test': [
|
'test': [
|
||||||
"pytest==3.3.2",
|
"pytest==3.3.2",
|
||||||
|
"pytest-xdist",
|
||||||
"tox>=2.9.1,<3",
|
"tox>=2.9.1,<3",
|
||||||
],
|
],
|
||||||
'lint': [
|
'lint': [
|
||||||
|
@ -20,7 +21,6 @@ extras_require={
|
||||||
],
|
],
|
||||||
'dev': [
|
'dev': [
|
||||||
"bumpversion>=0.5.3,<1",
|
"bumpversion>=0.5.3,<1",
|
||||||
"pytest-xdist",
|
|
||||||
"pytest-watch>=4.1.0,<5",
|
"pytest-watch>=4.1.0,<5",
|
||||||
"wheel",
|
"wheel",
|
||||||
"ipython",
|
"ipython",
|
||||||
|
@ -28,10 +28,10 @@ extras_require={
|
||||||
}
|
}
|
||||||
|
|
||||||
extras_require['dev'] = (
|
extras_require['dev'] = (
|
||||||
extras_require['dev']
|
extras_require['dev'] +
|
||||||
+ extras_require['test']
|
extras_require['test'] +
|
||||||
+ extras_require['lint']
|
extras_require['lint'] +
|
||||||
+ extras_require['doc']
|
extras_require['doc']
|
||||||
)
|
)
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
|
|
6
tox.ini
6
tox.ini
|
@ -22,7 +22,7 @@ ignore=
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop=True
|
usedevelop=True
|
||||||
commands=
|
commands=
|
||||||
core: py.test {posargs:tests/core}
|
core: pytest {posargs:tests/core}
|
||||||
doctest: make -C {toxinidir}/docs doctest
|
doctest: make -C {toxinidir}/docs doctest
|
||||||
basepython =
|
basepython =
|
||||||
doctest: python
|
doctest: python
|
||||||
|
@ -38,5 +38,5 @@ whitelist_externals=make
|
||||||
basepython=python
|
basepython=python
|
||||||
extras=lint
|
extras=lint
|
||||||
commands=
|
commands=
|
||||||
flake8 {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|
flake8 {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|
||||||
isort --recursive --check-only --diff {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|
isort --recursive --check-only --diff {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|
||||||
|
|
Loading…
Reference in New Issue
Block a user