-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (34 loc) · 955 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
44
45
46
47
48
49
50
51
bin = .venv/bin
packages = schemes tests
clean:
rm -rf .mypy_cache .venv node_modules test-results
rm -rf schemes/views/static/govuk-frontend schemes/views/static/govuk-one-login-service-header
find . -name __pycache__ -type d -prune -exec rm -rf {} \;
find . -name .pytest_cache -type d -prune -exec rm -rf {} \;
black-check:
$(bin)/black --check $(packages)
isort-check:
$(bin)/isort --check-only $(packages)
terraform-fmt-check:
terraform -chdir=cloud fmt -check -recursive
format-check: black-check isort-check terraform-fmt-check
black:
$(bin)/black $(packages)
isort:
$(bin)/isort $(packages)
terraform-fmt:
terraform -chdir=cloud fmt -recursive
format: black isort terraform-fmt
mypy:
$(bin)/mypy $(packages)
ruff:
$(bin)/ruff check $(packages)
lint: mypy ruff
ruff-fix:
$(bin)/ruff check --fix $(packages)
fix: ruff-fix
test:
$(bin)/pytest
verify: format-check lint test
run:
$(bin)/flask --debug --app schemes run