Benjamin Drung 3d54a17403 refactor: Move linter checks into run-linters script
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 14:10:02 +01:00

16 lines
263 B
Makefile
Executable File

#!/usr/bin/make -f
override_dh_auto_clean:
dh_auto_clean
rm -f .coverage
rm -rf .tox
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
./run-linters
python3 -m pytest -v ubuntutools
endif
%:
dh $@ --with python3 --buildsystem=pybuild