forked from allient/create-fastapi-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (29 loc) · 766 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
#!/usr/bin/make
help:
@echo "make"
@echo " install"
@echo " Install all packages of poetry project locally."
@echo " formatter"
@echo " Apply black formatting to code."
@echo " mypy"
@echo " Apply type checking."
@echo " lint"
@echo " Lint code with ruff, and check if black formatter should be applied."
@echo " lint-watch"
@echo " Lint code with ruff in watch mode."
@echo " lint-fix"
@echo " Lint code with ruff and try to fix."
install:
cd backend/app && \
poetry shell && \
poetry install
formatter:
poetry run black .
mypy:
poetry run mypy .
lint:
poetry run ruff . && poetry run black --check .
lint-watch:
poetry run ruff . --watch
lint-fix:
poetry run ruff . --fix