-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
43 lines (36 loc) · 946 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
## help: displays this help
.PHONY: help
help: Makefile
@sed -n 's/^## \?//p' $<
## isort: run isort
.PHONY: isort
isort:
@poetry run isort --profile black .
@poetry run autoflake --remove-all-unused-imports --recursive --remove-unused --in-place .
## watch-focus: run tests in watch mode with focus
.PHONY watch-focus:
watch-focus:
poetry run ptw -- -- -rP -m focus
## watch: run tests in watch mode
.PHONY: watch
watch:
poetry run ptw -- -- -rP
## test: run tests
.PHONY: test
test:
poetry run pytest
## streamlit: run the app
.PHONY: streamlit
streamlit:
poetry run streamlit run streamlit_app.py
## lint: run linters
.PHONY: lint
lint:
poetry run mypy .
poetry run black . --check
poetry run ruff .
## format: run formatters
.PHONY: format
format:
poetry run black .
poetry run ruff --select I --fix .