Migrate tailscalesd to uv and add flake packaging with a NixOS service module.
This commit is contained in:
parent
b195bd1e8f
commit
d5201b471b
14 changed files with 2160 additions and 2242 deletions
20
Makefile
20
Makefile
|
|
@ -1,4 +1,4 @@
|
|||
POETRY ?= poetry run
|
||||
UV ?= uv run
|
||||
SRC := tailscalesd
|
||||
TESTS := tests
|
||||
SHELL := $(shell which bash)
|
||||
|
|
@ -12,13 +12,13 @@ docker-build:
|
|||
.
|
||||
|
||||
freeze:
|
||||
poetry export --format=requirements.txt > requirements.frozen.txt
|
||||
uv export --format requirements-txt --no-hashes --no-emit-project > requirements.frozen.txt
|
||||
|
||||
fmt:
|
||||
$(POETRY) black $(SRC)
|
||||
$(POETRY) black $(TESTS)
|
||||
$(POETRY) isort --profile black $(SRC)
|
||||
$(POETRY) isort --profile black $(TESTS)
|
||||
$(UV) black $(SRC)
|
||||
$(UV) black $(TESTS)
|
||||
$(UV) isort --profile black $(SRC)
|
||||
$(UV) isort --profile black $(TESTS)
|
||||
|
||||
check:
|
||||
$(MAKE) fmt
|
||||
|
|
@ -28,13 +28,13 @@ check:
|
|||
$(MAKE) test
|
||||
|
||||
lint:
|
||||
$(POETRY) flake8 $(SRC)
|
||||
$(UV) flake8 $(SRC)
|
||||
|
||||
bandit:
|
||||
$(POETRY) bandit -r $(SRC)
|
||||
$(UV) bandit -r $(SRC)
|
||||
|
||||
types:
|
||||
$(POETRY) mypy $(SRC)
|
||||
$(UV) mypy $(SRC)
|
||||
|
||||
test:
|
||||
$(POETRY) pytest $(TESTS)
|
||||
$(UV) pytest $(TESTS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue