Merge pull request #5 from davesque/misc-fixes

Misc fixes
This commit is contained in:
Jason Carver 2018-06-04 16:45:32 -06:00 committed by GitHub
commit 28787fe9f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 11 deletions

View File

@ -29,7 +29,7 @@ lint-roll:
$(MAKE) lint $(MAKE) lint
test: test:
py.test tests pytest tests
test-all: test-all:
tox tox

View File

@ -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

View File

@ -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(

View File

@ -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