tailscalesd/Makefile

30 lines
396 B
Makefile
Raw Normal View History

UV ?= uv run
2023-11-05 20:16:47 +01:00
SRC := tailscalesd
TESTS := tests
SHELL := $(shell which bash)
fmt:
$(UV) black $(SRC)
$(UV) black $(TESTS)
$(UV) isort --profile black $(SRC)
$(UV) isort --profile black $(TESTS)
2023-11-05 20:16:47 +01:00
check:
$(MAKE) fmt
$(MAKE) lint
$(MAKE) types
$(MAKE) bandit
$(MAKE) test
2023-11-05 20:16:47 +01:00
lint:
$(UV) flake8 $(SRC)
2023-11-05 20:16:47 +01:00
bandit:
$(UV) bandit -r $(SRC)
2023-11-05 20:16:47 +01:00
types:
$(UV) mypy $(SRC)
2023-11-05 20:16:47 +01:00
test:
$(UV) pytest $(TESTS)