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

4
5
6
all:	flake8 pylint mypy

allLocal:	flake8 pylint mypy coverage
7
8

flake8:
9
10
	@echo Performing syntax checks via flake8...
	@flake8 ${PY_SRC} || exit 1
11
12

pylint:
13
	@echo Performing static analysis via pylint...
14
	@pylint --disable=I --rcfile=pylint.cfg ${PY_SRC}  | grep -v '^$$' | sed -n '/^Report/q;p'
15
16

mypy:
17
18
	@echo Performing type analysis via mypy...
	@mypy --check-untyped-defs ${PY_SRC} || exit 1
19

20
21
22
23
coverage:
	@echo Performing coverage checks...
	@$(MAKE) -C tests-coverage  || exit 1

24
.PHONY:	flake8 pylint mypy