Makefile 422 Bytes
Newer Older
1
PY_SRC:=$(wildcard asn2dataModel.py aadl2glueC.py smp2asn.py *mappers/[a-zA-Z]*py commonPy/[a-zA-Z]*py)
2
PY_SRC:=$(filter-out B_mappers/antlr.main.py A_mappers/Stubs.py, ${PY_SRC})
3
4
5
6
7
8
9

all:	flake8 pylint mypy

flake8:
	flake8 ${PY_SRC} || exit 1

pylint:
10
	for i in ${PY_SRC} ; do pylint --rcfile=pylint.cfg $$i || { echo $$i ; exit 1; } ; done
11
12
13
14
15

mypy:
	mypy --check-untyped-defs ${PY_SRC} || exit 1

.PHONY:	flake8 pylint mypy