-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
48 lines (36 loc) · 1.19 KB
/
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
44
45
46
47
48
.PHONY: help docs
.DEFAULT_GOAL := help
help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
clean: ## Removing cached python compiled files
find . -name \*pyc | xargs rm -fv
find . -name \*pyo | xargs rm -fv
find . -name \*~ | xargs rm -fv
find . -name __pycache__ | xargs rm -rfv
find . -name .ruff_cache | xargs rm -rfv
install: ## Install dependencies
pip install -r requirements.txt
flit install --symlink
install-full: ## Install dependencies
make install
pre-commit install -f
lint:fmt ## Run code linters
ruff check ellar tests samples
mypy ellar
ruff-fix: ## Run Ruff fixer
ruff check ellar tests samples --fix --unsafe-fixes
fmt format:clean ## Run code formatters
ruff format ellar tests samples
ruff check --fix ellar tests samples
test:clean ## Run tests
pytest
test-cov: ## Run tests with coverage
pytest --cov=ellar --cov-report term-missing
doc-deploy:clean ## Run Deploy Documentation
mkdocs gh-deploy --force --ignore-version
doc-serve: ## Launch doc local server
mkdocs serve
pre-commit-lint: ## Runs Requires commands during pre-commit
make clean
make fmt
make lint