add flake8 and mypy on test
This commit is contained in:
parent
63bf05b792
commit
106c8cd8b6
4 changed files with 10 additions and 4 deletions
|
|
@ -16,7 +16,10 @@ test_unit: venv
|
|||
lint: venv
|
||||
. venv/bin/activate && flake8 .
|
||||
|
||||
mypy: venv
|
||||
. venv/bin/activate && mypy .
|
||||
|
||||
deps: venv
|
||||
. venv/bin/activate && pip install -U -r requirements.txt
|
||||
|
||||
test: test_unit lint
|
||||
test: test_unit lint mypy
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
pytest
|
||||
pytest-cov
|
||||
pytest-mypy
|
||||
pytest-flake8
|
||||
flake8
|
||||
pip
|
||||
mypy
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ ignore = NONE
|
|||
max-line-length = 120
|
||||
|
||||
[tool:pytest]
|
||||
addopts = --cov={{cookiecutter.project_name}} --cov-fail-under=80 --cov-report=term-missing:skip-covered --cov-report=xml --cov-report=html -vvv
|
||||
addopts = --cov={{cookiecutter.project_name}} --cov-fail-under=80 --cov-report=term-missing:skip-covered --cov-report=xml --cov-report=html --mypy --flake8 -vvv
|
||||
|
||||
[coverage:run]
|
||||
branch = True
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
# from mock import MagicMock
|
||||
|
||||
|
||||
def test_true():
|
||||
assert True == True
|
||||
def test_true() -> None:
|
||||
assert True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue