-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
flake8 | ||
nose | ||
coverage | ||
cython | ||
numpy | ||
matplotlib |
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,41 +1,46 @@ | ||
# Tox (http://tox.testrun.org/) is a tool for running tests | ||
# in multiple virtualenvs. This configuration file will run the | ||
# test suite on all supported python versions. To use it, "pip install tox" | ||
# and then run "tox" from this directory. | ||
|
||
# Running the command 'tox' while in the root of the pyedflib source | ||
# directory will: | ||
# - Create a pyedflib source distribution (setup.py sdist) | ||
# - Then for every supported version of Python: | ||
# - Create a virtualenv in {homedir}/.tox/pyedflib/py$VERSION and | ||
# install dependencies. (These virtualenvs are cached across | ||
# runs unless you use --recreate.) | ||
# - Use pip to install the pyedflib sdist into the virtualenv | ||
# - Run the pyedflib tests | ||
# To run against a specific subset of Python versions, use: | ||
# tox -e py26,py27 | ||
|
||
# Tox assumes that you have appropriate Python interpreters already | ||
# installed and that they can be run as 'python2.6', 'python2.7', etc. | ||
|
||
[tox] | ||
toxworkdir = {homedir}/.tox/pyedflib/ | ||
envlist = py26, py27, py33, py34, py35 | ||
envlist = py{27,34,35,36,37} | ||
skip_missing_interpreters = true | ||
|
||
[testenv] | ||
deps = | ||
flake8 | ||
nose | ||
coverage | ||
cython | ||
numpy | ||
matplotlib | ||
-rrequirements-test.txt | ||
changedir = {envdir} | ||
commands = | ||
nosetests --tests {toxinidir}/pyedflib/tests | ||
# flake8 --exit-zero pyedflib | ||
|
||
[pep8] | ||
max_line_length = 79 | ||
statistics = True | ||
ignore = E121,E122,E123,E125,E126,E127,E128,E226,E231,E501,E712 | ||
[testenv:flake8] | ||
deps= | ||
flake8 | ||
# flake8-docstrings>=0.2.7 | ||
# flake8-import-order>=0.9 | ||
# pep8-naming | ||
# flake8-colors | ||
commands= | ||
flake8 beem beemapi beembase beemgraphenebase setup.py examples tests | ||
|
||
# Flake8 Configuration | ||
[flake8] | ||
# Ignore some flake8-docstrings errors | ||
# NOTE(sigmavirus24): While we're still using flake8 2.x, this ignore line | ||
# defaults to selecting all other errors so we do not need select=E,F,W,I,D | ||
# Once Flake8 3.0 is released and in a good state, we can use both and it will | ||
# work well \o/ | ||
ignore = D203,E129,E501,F401,E722,E122,E111,E114,D102,D100,D103,D107 | ||
exclude = | ||
.tox, | ||
.git, | ||
__pycache__, | ||
docs/source/conf.py, | ||
build, | ||
dist, | ||
tests/fixtures/*, | ||
*.pyc, | ||
*.egg-info, | ||
.cache, | ||
.eggs | ||
max-complexity = 10 | ||
import-order-style = google | ||
application-import-names = flake8 | ||
# format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s |