-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (32 loc) · 790 Bytes
/
Makefile
File metadata and controls
44 lines (32 loc) · 790 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
43
.PHONY: install test lint format clean setup-repo
install:
pip3 install -r requirements.txt
pip3 install -e ".[dev]"
pre-commit install
test:
python3.10 -m pytest tests/ -v
lint:
ruff check .
black --check .
mypy . --ignore-missing-imports || true
format:
black .
ruff check . --fix
clean:
find . -type d -name __pycache__ -exec rm -r {} +
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
rm -rf build/ dist/ *.egg-info
build:
python3.10 -m pip install --upgrade build twine
python3.10 -m build
publish-test:
python3.10 -m twine upload --repository testpypi dist/*
publish:
python3.10 -m twine upload dist/*
check-dist:
python3.10 -m twine check dist/*
setup-repo:
bash scripts/setup-repo.sh
update-docs:
bash scripts/update-docs.sh