-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (33 loc) · 908 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FULLNAME ?= kanidm/kanidm
.DEFAULT: precommit
.PHONY: precommit
precommit: ruff mypy pytest
.PHONY: jslint
jslint:
biome check ./github_linter --json-formatter-enabled=false
.PHONY: ruff
ruff:
uv run ruff check github_linter tests
.PHONY: mypy
mypy:
uv run mypy --strict github_linter tests
.PHONY: pytest
pytest:
uv run pytest github_linter tests
.PHONY: docker_build
docker_build:
docker build -t 'ghcr.io/yaleman/github_linter:latest' \
.
.PHONY: docker_run
docker_run: docker_build
docker run --rm -it \
-p 8000:8000 \
--env-file .envrc -e "GITHUB_TOKEN=${GITHUB_TOKEN}" \
'ghcr.io/yaleman/github_linter:latest' \
python -m github_linter.web
.PHONY: container/workflow_stats
container/workflow_stats:
docker run --rm -it \
--env-file .envrc -e "GITHUB_TOKEN=${GITHUB_TOKEN}" \
'ghcr.io/yaleman/github_linter:latest' \
python -m github_linter.workflow_stats -f $(FULLNAME)