Skip to content

Commit

Permalink
Add MyPy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
skorokithakis committed Jun 4, 2018
1 parent 563a6f9 commit da6945f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ docs/_build/

# PyBuilder
target/

.mypy_cache/
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ install: "pip install -r requirements_dev.txt"
script:
# Only run this on Python 3.6.
- if [[ TRAVIS_PYTHON_VERSION == 3.6* ]] ; then pre-commit run -a; fi
- mypy --ignore-missing-imports --follow-imports=skip catt
- python setup.py test
2 changes: 1 addition & 1 deletion catt/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
try:
from json import JSONDecodeError
except ImportError:
JSONDecodeError = ValueError
JSONDecodeError = ValueError # type: ignore


YOUTUBE_BASE_URL = "https://www.youtube.com/"
Expand Down
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ coverage==4.0
Sphinx==1.3.1
pre-commit
isort
mypy

0 comments on commit da6945f

Please sign in to comment.