Skip to content

Commit 7f88fc7

Browse files
committed
Update Makefile
1 parent 0909d5a commit 7f88fc7

1 file changed

Lines changed: 18 additions & 20 deletions

File tree

Makefile

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,42 @@
11
.PHONY: install remove refactor lint build upload tests doc
22

33
install:
4-
pip3 install -e .
4+
uv sync --all-groups
55

66
remove:
77
pip uninstall python3_capsolver -y
88

99
refactor:
10-
black docs/
11-
isort docs/
10+
uv run black docs/
11+
uv run isort docs/
1212

13-
autoflake --in-place \
13+
uv run autoflake --in-place \
1414
--recursive \
1515
--remove-unused-variables \
1616
--remove-duplicate-keys \
1717
--remove-all-unused-imports \
1818
src/ tests/
19-
black src/ tests/
20-
isort src/ tests/
19+
uv run black src/ tests/
20+
uv run isort src/ tests/
2121

2222
lint:
23-
autoflake --in-place --recursive src/ --check
24-
black src/ --check
25-
isort src/ --check-only
23+
uv run autoflake --in-place --recursive src/ --check
24+
uv run black src/ --check
25+
uv run isort src/ --check-only
2626

2727
build:
28-
pip3 install --upgrade build setuptools
29-
python3 -m build
28+
uv build
3029

3130
upload:
32-
pip3 install twine wheel setuptools build
33-
twine upload dist/*
31+
uv publish
3432

35-
tests: install
36-
coverage run --rcfile=.coveragerc -m pytest --verbose --showlocals --disable-warnings \
33+
tests:
34+
uv run coverage run --rcfile=.coveragerc -m pytest --verbose --showlocals --disable-warnings \
3735
tests/ && \
38-
coverage report --precision=3 --sort=cover --skip-empty --show-missing && \
39-
coverage html --precision=3 --skip-empty -d coverage/html/ && \
40-
coverage xml -o coverage/coverage.xml
36+
uv run coverage report --precision=3 --sort=cover --skip-empty --show-missing && \
37+
uv run coverage html --precision=3 --skip-empty -d coverage/html/ && \
38+
uv run coverage xml -o coverage/coverage.xml
4139

42-
doc: install
40+
doc:
4341
cd docs/ && \
44-
make html -e
42+
uv run make html -e

0 commit comments

Comments
 (0)