-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 840 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 840 Bytes
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 format check test clean
help:
@echo ""
@echo "Usage: make <command>"
@echo ""
@echo "Available commands:"
@echo " - help show help message"
@echo " - format run formatting tools"
@echo " - lint run python linting tools"
@echo " - clean remove temp python directories and their contents"
@echo ""
format:
black main
lint:
black --check main
ruff check main
flake8 --statistics main
pylint -rn -sn --rcfile=.pylintrc main
mypy --strict --namespace-packages --explicit-package-bases main
clean:
@echo "Cleaning up..."
@find . -type d -name __pycache__ -exec rm -r {} \+
@find . -type d -name .mypy_cache -exec rm -r {} \+
@find . -type d -name .pytest_cache -exec rm -r {} \+
@find . -type d -name .ruff_cache -exec rm -r {} \+
@find . -name .coverage -exec rm -r {} \+
@echo "Done!"