-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
35 lines (26 loc) · 942 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
.PHONY: help install lint format pytest mypy mypy-types docs
help:
@echo "Available commands:"
@echo " install Install dependencies using Poetry"
@echo " lint Run linters using pre-commit"
@echo " format Run formatters using pre-commit"
@echo " pytest Run tests using pytest"
@echo " mypy Run type-checking using mypy"
@echo " mypy-types Install missing types using mypy"
@echo " docs Generate documentation using lazydocs"
install:
poetry install
lint:
pre-commit run ruff --all-files
format:
pre-commit run ruff-format --all-files
pytest:
poetry run pytest
mypy:
poetry run mypy --ignore-missing-imports src
mypy-types:
poetry run mypy --install-types
docs:
rm -rf docs
poetry run lazydocs --remove-package-prefix --overview-file="README.md" src
.DEFAULT_GOAL := help