29 lines
396 B
Makefile
29 lines
396 B
Makefile
UV ?= uv run
|
|
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)
|
|
|
|
check:
|
|
$(MAKE) fmt
|
|
$(MAKE) lint
|
|
$(MAKE) types
|
|
$(MAKE) bandit
|
|
$(MAKE) test
|
|
|
|
lint:
|
|
$(UV) flake8 $(SRC)
|
|
|
|
bandit:
|
|
$(UV) bandit -r $(SRC)
|
|
|
|
types:
|
|
$(UV) mypy $(SRC)
|
|
|
|
test:
|
|
$(UV) pytest $(TESTS)
|