-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 829 Bytes
/
Makefile
File metadata and controls
37 lines (29 loc) · 829 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
.PHONY: help install test lint build clean publish-test publish
help:
@echo "Available commands:"
@echo " install Install dependencies"
@echo " test Run tests"
@echo " lint Run linters"
@echo " build Build package"
@echo " clean Clean build artifacts"
@echo " publish-test Publish to TestPyPI"
@echo " publish Publish to PyPI"
install:
pip install -e ".[dev,test]"
test:
pytest tests/
lint:
ruff check src tests
black --check src tests
isort --check-only src tests
mypy src
build: clean
python -m build
clean:
rm -rf dist/ build/ *.egg-info/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
publish-test: build
python -m twine upload --repository testpypi dist/*
publish: build
python -m twine upload dist/*