-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade testing, multiple python versions
- Loading branch information
Showing
7 changed files
with
50 additions
and
48 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
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 |
---|---|---|
@@ -1,8 +1,16 @@ | ||
[Messages Control] | ||
# W0511: TODOs in code comments are fine. | ||
# W0142: *args and **kwargs are fine. | ||
disable=W0511,W0142 | ||
disable= | ||
bad-builtin, | ||
locally-disabled, | ||
fixme | ||
|
||
[BASIC] | ||
# Don't require docstrings on tests or Python Special Methods | ||
no-docstring-rgx=(__.*__|[tT]est.*|setUp|tearDown) | ||
no-docstring-rgx=(__.*__|[tT]est.*|setUp|tearDown) | ||
# Some names we are okay with | ||
good-names=f,e,i,j,k,v,ex,_,x,y,z | ||
|
||
[REPORTS] | ||
msg-template={msg_id}({symbol}): {path},{line}: {msg} | {obj} | ||
reports=yes | ||
output-format=colorized |
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 |
---|---|---|
@@ -1,40 +1,21 @@ | ||
[tox] | ||
# Only the following setting are valid in this section and in the Jenkins section | ||
# https://tox.readthedocs.org/en/latest/config.html#tox-global-settings | ||
envlist = py27,py34,py35,style | ||
|
||
# minversion=ver # minimally required tox version | ||
# toxworkdir=path # tox working directory, defaults to {toxinidir}/.tox | ||
# setupdir=path # defaults to {toxinidir} | ||
# distdir=path # defaults to {toxworkdir}/dist | ||
# distshare=path # defaults to {homedir}/.tox/distshare | ||
# envlist=ENVLIST # defaults to the list of all environments | ||
# skipsdist=BOOL # defaults to false | ||
envlist = py27 | ||
skipsdist = True | ||
|
||
|
||
############## | ||
# DEFAULT # | ||
############## | ||
[testenv] | ||
# This is the default setup. All other environments will inherit these settings | ||
usedevelop = True | ||
install_command = pip install --verbose --pre --exists-action=w {opts} {packages} | ||
basepython = python | ||
pyflake_codes = F401,F402,F403,F404,F811,F812,F821,F822,F823,F831,F841 | ||
|
||
# pull in dependencies from our pip-* files | ||
install_command = pip install --verbose -U --pre {opts} {packages} | ||
deps= -r{toxinidir}/requirements.txt | ||
-r{toxinidir}/test-requirements.txt | ||
|
||
commands= | ||
nosetests {posargs} --with-doctest --with-coverage --cover-html --cover-package=chef --cover-html-dir=coverage/ --with-xunit | ||
flake8 --select="{[testenv]pyflake_codes}" chef | ||
flake8 --exit-zero -j 1 chef | ||
/bin/bash -c 'pylint --ignore=tests chef --rcfile=pylintrc || exit 0' | ||
python -c "import sys;print('\nPYTHON VERSION\n%s\n' % sys.version)" | ||
nosetests {posargs} --verbose --with-doctest --with-coverage --cover-html --cover-package=chef --cover-html-dir=coverage/ --with-xunit | ||
|
||
[testenv:style] | ||
basepython = python2.7 | ||
commands = | ||
flake8 chef setup.py --statistics | ||
flake8 tests --statistics --ignore D100,D101,D102 | ||
pylint chef setup.py | ||
|
||
|
||
[flake8] | ||
#flake8 default settings | ||
exclude = tests | ||
max-complexity = 12 | ||
max-complexity = 12 |