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