Skip to content

Commit

Permalink
Split black linting and static type checking; Merge ydataai#300
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman committed Jan 1, 2020
1 parent d1e6bd1 commit 2a46d71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ env:
- TEST=issue
- TEST=console
- TEST=examples
- TEST=lint
- TEST=types

install:
Expand All @@ -23,13 +22,12 @@ install:
- pip install -e .

script:
- if [ $TEST == 'unit' ]; then pytest --cov=. --sanitize-with tests/sanitize-notebook.cfg tests/unit/; fi
- if [ $TEST == 'issue' ]; then pytest --cov=. --sanitize-with tests/sanitize-notebook.cfg tests/issues/; fi
- if [ $TEST == 'unit' ]; then pytest --cov=. tests/unit/; fi
- if [ $TEST == 'issue' ]; then pytest --cov=. tests/issues/; fi
- if [ $TEST == 'examples' ]; then pytest --nbval --cov=. --sanitize-with tests/sanitize-notebook.cfg examples/; fi
# Our well-behaved Unix-style command-line tool exits with code 0 unless an internal error occurred
- if [ $TEST == 'console' ]; then pandas_profiling -h; fi
- if [ $TEST == 'lint' ]; then pytest --black -m black pandas_profiling/; fi
- if [ $TEST == 'types' ]; then pytest --mypy -m mypy pandas_profiling/; fi

after_success:
- codecov -F $TEST
4 changes: 1 addition & 3 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
pytest
mypy
coverage==4.5.*
coverage<5
codecov
pytest-cov
pytest-mypy
pytest-black
nbval
pyarrow

0 comments on commit 2a46d71

Please sign in to comment.