Skip to content

Commit

Permalink
mypy added
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardbinet committed Jul 3, 2021
1 parent 58ce49b commit 5c8bb1c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Format - black
run: |
pip install black
black --check lighttree tests setup.py
- name: Mypy check
run: |
pip install mypy
mypy lighttree
- name: Test with pytest
run: |
pytest
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ lint:
black:
black lighttree tests setup.py

mypy:
mypy lighttree

check: mypy black lint

develop:
-python -m pip install -e ".[develop]"

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"flake8",
"mock",
"coverage",
"pytest"
"pytest",
"mypy",
]

setup(
Expand Down

0 comments on commit 5c8bb1c

Please sign in to comment.