Skip to content

Commit

Permalink
Add flake to testing process
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorC committed Jul 4, 2019
1 parent 0ebd6e8 commit b50c4d0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ addons:
secure: ${SONAR_TOKEN}
script:
- python setup.py build install
- python setup.py build setup
- flake8 osml
- travis_wait 90 coverage run --source=osml setup.py test
- coverage xml -o coverage.xml
- sonar-scanner
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
setuptools
flake8
pytest
coverage
numpy
Expand Down
8 changes: 7 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ test = pytest
[tool:pytest]
addopts = --verbose
python_files = tests/*/test_*.py
python_functions = test_*
python_functions = test_*

[flake8]
max-line-length = 120

[pep8]
max-line-length = 120
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

install_requires = ['numpy', 'pandas']

setup_requires = ['pytest-runner']
setup_requires = ['pytest-runner', 'flake8']

test_requires = ['pytest', 'coverage', 'scipy', 'sklearn']

Expand Down

0 comments on commit b50c4d0

Please sign in to comment.