-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (38 loc) · 1.1 KB
/
Makefile
File metadata and controls
47 lines (38 loc) · 1.1 KB
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
.DEFAULT_GOAL := help
.PHONY: help
help: ## Display this help screen
@grep -E '^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: clean
clean: clean-build clean-test clean-pyc ## Clean project
.PHONY: clean-build
clean-build:
rm -fr build/
rm -fr dist/
rm -fr .eggs/
rm -fr .mypy_cache
rm -fr .ruff_cache
find . -name '*.egg-info' -not -path '.venv/*' -exec rm -fr {} +
find . -name '*.egg' -not -path '.venv/*' -exec rm -f {} +
.PHONY: clean-pyc
clean-pyc:
find . -name '*.pyc' -not -path '.venv/*' -exec rm -f {} +
find . -name '*.pyo' -not -path '.venv/*' -exec rm -f {} +
find . -name '*~' -not -path '.venv/*' -exec rm -f {} +
find . -name '__pycache__' -not -path '.venv/*' -exec rm -fr {} +
.PHONY: clean-test
clean-test:
rm -fr .tox/
rm -fr .nox/
rm -f .coverage
rm -fr htmlcov/
rm -fr .pytest_cache
.PHONY: test
test: clean nox ## Run tests
.PHONY: nox
nox: clean ## Run nox tests
uvx nox
.PHONY: pre-commit
pre-commit: clean ## Run pre-commit
git add . && uvx pre-commit run -a
.PHONY: prc
prc: pre-commit