-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 827 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (24 loc) · 827 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
.PHONY: install remove tests refactor lint build upload doc
install:
uv sync
remove:
uv pip uninstall python3-anticaptcha
tests:
uv run --extra test coverage run --rcfile=.coveragerc -m pytest --verbose --showlocals --disable-warnings \
tests/ && \
uv run --extra test coverage report --precision=3 --sort=cover --skip-empty --show-missing && \
uv run --extra test coverage html --precision=3 --skip-empty -d coverage/html/ && \
uv run --extra test coverage xml -o coverage/coverage.xml
refactor:
uv run --extra style ruff check --fix src tests && \
uv run --extra style ruff format src tests
lint:
uv run --extra style ruff check src tests && \
uv run --extra style ruff format --check src tests
build:
uv build
upload:
uv build
uv publish
doc:
uv run --extra docs sphinx-build -M html docs docs/_build