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

4
all:	flake8 pylint coverage
5
6

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

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

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

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

22
.PHONY:	flake8 pylint mypy coverage