-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (25 loc) · 692 Bytes
/
Makefile
File metadata and controls
37 lines (25 loc) · 692 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
.PHONY: clean install versions lint test cov format dist publish-release-pypi-test publish_release-pypi
default: clean install
clean:
find . -name '__pycache__' -exec rm -rf {} +
rm -Rf build/
versions:
pip-compile --extra dev --no-emit-index-url --upgrade -o requirements-dev.txt pyproject.toml
install:
pip install -r requirements-dev.txt -e .[dist]
lint:
ruff check src tests
mypy .
test:
pytest
cov:
pytest --cov=update_netrc --cov-report=html --cov-report=term
format:
ruff check src tests --fix
ruff format
dist:
pyproject-build .
publish-release-pypi-test: dist
twine upload --repository testpypi dist/*
publish_release-pypi: build_release
twine upload dist/*