-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from codingjoe/tox
Adds tox
- Loading branch information
Showing
5 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# This file is autogenerated by pip-compile | ||
# Make changes in requirements-dev.in, then run this to update: | ||
# | ||
# pip-compile requirements-dev.in | ||
# | ||
-e . | ||
django-appconf==1.0.1 | ||
flake8==2.5.4 | ||
isort==4.2.2 | ||
mccabe==0.4.0 # via flake8 | ||
pep257==0.7.0 | ||
pep8-naming==0.3.3 | ||
pep8==1.7.0 # via flake8 | ||
pluggy==0.3.1 # via tox | ||
py==1.4.31 # via pytest, tox | ||
pyflakes==1.0.0 # via flake8 | ||
pytest-django==2.9.1 | ||
pytest==2.8.7 | ||
selenium==2.52.0 | ||
six==1.10.0 # via django-appconf | ||
tox==2.3.1 | ||
virtualenv==14.0.6 # via tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
[pytest] | ||
addopts = --tb=short -rxs | ||
DJANGO_SETTINGS_MODULE=tests.testapp.settings | ||
norecursedirs = env docs | ||
|
||
[flake8] | ||
max-line-length = 99 | ||
max-complexity = 10 | ||
statistics = true | ||
show-source = true | ||
exclude = */migrations/*,docs/*,env/*,.tox/* | ||
|
||
[pep257] | ||
add-ignore = D100,D102,D103,D104 | ||
match-dir = (?!tests|env|\.).* | ||
|
||
[isort] | ||
atomic = true | ||
multi_line_output = 5 | ||
line_length = 79 | ||
skip = manage.py | ||
skip = manage.py,.tox,env | ||
known_first_party = s3file,tests | ||
known_third_party = django | ||
combine_as_imports = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[tox] | ||
envlist = py{27,34,35}-django{18,19,master},qa | ||
[testenv] | ||
setenv= | ||
DISPLAY=:99.0 | ||
PYTHONPATH = {toxinidir} | ||
deps= | ||
-rrequirements-dev.txt | ||
django18: Django>=1.8,<1.9 | ||
django19: Django>=1.9,<1.10 | ||
djangomaster: -egit+https://github.com/django/django.git@master#egg=Django | ||
commands= | ||
py.test \ | ||
--basetemp={envtmpdir} \ | ||
--ignore=.tox \ | ||
{posargs} | ||
|
||
[testenv:qa] | ||
changedir={toxinidir} | ||
deps= | ||
-rrequirements-dev.txt | ||
commands= | ||
isort --check-only --recursive --diff {posargs} | ||
flake8 --jobs=2 {posargs} | ||
pep257 --verbose --explain --source --count {posargs} |