py-check.mk: Add file
Add py-check.mk and use it from py-topdir.mk and py-rules.mk. This removes redundant check definitions, making sure that that checks run from a repo's subdirectory match the checks run from its toplevel directory. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
150866015a
commit
ee697d203d
4 changed files with 92 additions and 66 deletions
|
|
@ -19,8 +19,6 @@ else
|
|||
PY_SITE_PACKAGES_PATH := $(shell $(PYTHON) -c "import site; print([d for d in site.getsitepackages() if d.find('/local/') == -1][0])")
|
||||
endif
|
||||
|
||||
PY_MYPY ?= mypy --ignore-missing-imports --no-namespace-packages
|
||||
|
||||
PY_SRC_PY ?= $(wildcard *.py)
|
||||
PY_ALL_PY = $(PY_SRC_PY)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue