-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
57 lines (43 loc) · 1.18 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
49
50
51
52
53
54
55
56
57
init-env:
pip install . --no-cache-dir
init-dev:
pip install -e ".[all-dev]" --no-cache-dir
pre-commit install
clean-notebooks:
jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace notebooks/*.ipynb
clean-folders:
rm -rf __pycache__ */__pycache__ */**/__pycache__ \
.pytest_cache */.pytest_cache */**/.pytest_cache \
.ruff_cache */.ruff_cache */**/.ruff_cache \
.mypy_cache */.mypy_cache */**/.mypy_cache \
site build dist htmlcov .coverage .tox
lint:
ruff version
ruff format timebasedcv tests
ruff check timebasedcv tests --fix
ruff clean
test:
pytest tests -n auto
coverage:
rm -rf .coverage
(rm docs/img/coverage.svg) || (echo "No coverage.svg file found")
coverage run -m pytest
coverage report -m
coverage-badge -o docs/img/coverage.svg
interrogate:
interrogate timebasedcv tests
interrogate-badge:
interrogate --generate-badge docs/img/interrogate-shield.svg
types:
mypy timebasedcv
check: interrogate lint test types clean-folders
docs-serve:
mkdocs serve
docs-deploy:
mkdocs gh-deploy
pypi-push:
rm -rf dist
uv build
uv publish
get-version :
@echo $(shell grep -m 1 version pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3)