-
Notifications
You must be signed in to change notification settings - Fork 21
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 #1537 from grycap/devel
Devel
- Loading branch information
Showing
12 changed files
with
34 additions
and
28 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
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
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,2 @@ | ||
import sys | ||
sys.path.append(".") |
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,31 +1,32 @@ | ||
[tox] | ||
envlist = py3,style,coverage,bandit | ||
envlist = style,py3,coverage,bandit | ||
skipsdist = true | ||
|
||
[testenv] | ||
deps = nose | ||
mock | ||
bandit | ||
-r{toxinidir}/requirements-tests.txt | ||
deps = -r{toxinidir}/requirements-tests.txt | ||
basepython = | ||
{py3,style,coverage,bandit}: python3 | ||
whitelist_externals = bash | ||
commands = bash -c "nosetests -v test/unit/*.py test/unit/connectors/*.py" | ||
commands = python -m unittest discover -v -s test/unit -p '*.py' | ||
|
||
[testenv:style] | ||
deps = pycodestyle | ||
commands = pycodestyle --max-line-length=120 --ignore=E402,W504,W605 IM --exclude=doc | ||
pycodestyle --max-line-length=120 --ignore=E402,W504,W605 contextualization --exclude=doc | ||
pycodestyle --max-line-length=120 --ignore=E402,W504,W605 test | ||
commands = pycodestyle --max-line-length=120 --ignore=E402,W504,W605 . --exclude=doc,.tox,scripts | ||
|
||
[testenv:coverage] | ||
commands = bash -c "nosetests -v test/unit/*.py test/unit/connectors/*.py -v --stop --with-xunit --with-coverage --cover-erase --cover-xml --cover-package=IM,contextualization" | ||
deps = -r{toxinidir}/requirements-tests.txt | ||
commands = python -m coverage run --source=. -m unittest discover -v -s test/unit -p '*.py' | ||
python -m coverage xml -o coverage.xml | ||
|
||
[testenv:bandit] | ||
commands = bandit IM -r -f html -o bandit.html -s B108,B601,B104 --severity-level medium | ||
deps = bandit | ||
commands = bandit IM -r -f html -o bandit.html -s B108,B601,B608,B507,B104 -ll | ||
|
||
[flake8] | ||
ignore = E402,E265,W605,W504,F811 | ||
max-line-length = 120 | ||
exclude = doc,scripts | ||
|
||
[pytest] | ||
python_files = *.py | ||
testpaths = | ||
test/unit |