Start linting with mypy

This commit is contained in:
jo 2021-09-10 14:41:51 +02:00
parent ceb40ee216
commit 3dbc1205d0
13 changed files with 24 additions and 6 deletions

View file

@ -4,6 +4,7 @@ include ../../tools/python.mk
PIP_INSTALL := --editable .[dev]
PYLINT_ARG := airtime-celery
MYPY_ARG := airtime-celery
lint: .pylint
lint: .pylint .mypy
clean: .clean

View file

@ -26,6 +26,7 @@ setup(
extras_require={
"prod": [],
"dev": [
"mypy",
"pylint",
],
},

View file

@ -4,9 +4,10 @@ include ../../tools/python.mk
PIP_INSTALL := --editable .[dev]
PYLINT_ARG := airtime_analyzer tests
MYPY_ARG := airtime_analyzer tests
PYTEST_ARG := --cov=airtime_analyzer tests
lint: .pylint
lint: .pylint .mypy
fixtures:
bash tests/fixtures/generate.sh

View file

@ -37,6 +37,7 @@ setup(
"prod": [],
"dev": [
"distro",
"mypy",
"pylint",
"pytest",
"pytest-cov",

View file

@ -4,8 +4,9 @@ include ../../tools/python.mk
PIP_INSTALL := --editable .[dev]
PYLINT_ARG := api_clients tests
MYPY_ARG := api_clients tests
PYTEST_ARG := --cov=api_clients tests
lint: .pylint
lint: .pylint .mypy
test: .pytest
clean: .clean

View file

@ -26,6 +26,7 @@ setup(
extras_require={
"prod": [],
"dev": [
"mypy",
"pylint",
"pytest",
"pytest-cov",

View file

@ -4,6 +4,7 @@ include ../../tools/python.mk
PIP_INSTALL := --editable .[dev]
PYLINT_ARG := liquidsoap pypo
MYPY_ARG := liquidsoap pypo
lint: .pylint
lint: .pylint .mypy
clean: .clean

View file

@ -40,6 +40,7 @@ setup(
extras_require={
"prod": [],
"dev": [
"mypy",
"pylint",
],
},