Skip to content

Commit

Permalink
Add mypy check to travis CI
Browse files Browse the repository at this point in the history
Also use 4 spaces for travis config file because that's how I roll.

I should add an .editorconfig here 🤔
  • Loading branch information
LuRsT committed Sep 29, 2019
1 parent 609fec5 commit 8c5a45b
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .travis.yml
Expand Up @@ -4,24 +4,27 @@ cache: pip
sudo: required

matrix:
fast_finish: true
include:
- python: 3.7
fast_finish: true
include:
- python: 3.7

install:
- pip install -U pip
- pip install -U black flake8 pytest pytest-cov codecov
- pip install -U pip
- pip install -U black flake8 pytest pytest-cov codecov mypy

script:
# Unit tests
- pytest --cov dragn
# Mypy
- mypy .

# Static analysis
- flake8 --statistics --count
# Unit tests
- pytest --cov dragn

# Code formatting
- black --check .
# Static analysis
- flake8 --statistics --count

# Code formatting
- black --check .

after_success:
# Send coverage to Codecov
- codecov
# Send coverage to Codecov
- codecov

0 comments on commit 8c5a45b

Please sign in to comment.