Skip to content

Commit

Permalink
Run Black and Flake8 on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 18, 2018
1 parent 3e0521e commit 52ae952
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length = 88
15 changes: 9 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: python
cache: pip

matrix:
include:
Expand All @@ -14,18 +15,20 @@ matrix:
sudo: false

install:
- pip install coverage
- pip install -U pip
- pip install black coverage coveralls flake8

script:
# Unit tests
- coverage run --source=fino ./test_fino.py -v

# Static analysis
- pip install pep8 pyflakes
- flake8 --statistics --count
- black --check --diff

after_success:
- pip install coveralls
- coveralls

after_script:
- coverage report
- pip install pep8 pyflakes
- pep8 --statistics --count *.py
- pyflakes *.py | tee >(wc -l)

0 comments on commit 52ae952

Please sign in to comment.