-
Notifications
You must be signed in to change notification settings - Fork 950
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 769 Bytes
/
Makefile
File metadata and controls
42 lines (32 loc) · 769 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
36
37
38
39
40
41
42
MDL_PATH := $(shell command -v markdownlint 2> /dev/null)
lint:
ifdef MDL_PATH
markdownlint -c .markdownlint.yaml '**/*.md'
else
$(warning "[WARN] No 'markdownlint' utility in PATH. Consider installing it from your package manager.")
$(warning "[WARN] Markdown linting has been skipped.")
endif
ruff:
uv run ruff check .
ty:
uv run ty check
test:
uv run pytest
coverage:
uv run pytest --cov=mackup --cov-report=term --cov-report=html --cov-report=xml
coverage-report:
uv run coverage report
mypy:
uv run mypy src/mackup/
check: lint ruff mypy ty test
@echo "All checks passed!"
clean:
rm -rf src/mackup/__pycache__
rm -rf tests/__pycache__
rm -rf dist/
rm -rf htmlcov/
rm -rf .coverage
rm -rf coverage.xml
release: clean
uv build
uv publish