Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2162428

Browse files
committed
more tooling for tests etc
1 parent 1c13dc1 commit 2162428

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ dist/
99

1010
*.pyc
1111
__pycache__
12+
.tox/
13+
.*_cache/

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: venv install test quality clean dist release
1+
.PHONY: venv install test quality clean sterile dist release
22

33
venv: .venv
44
.venv:
@@ -8,21 +8,21 @@ install: .venv
88
uv pip install -e .[dev]
99

1010
test:
11-
coverage run -m pytest
12-
coverage combine -q
13-
coverage report
14-
coverage html
11+
tox -qf py312-sphinx8,coverage
1512

1613
quality:
1714
ty check
1815
ruff check
1916
ruff format
2017

2118
clean:
22-
rm -rf .coverage htmlcov tmp
19+
rm -rf .coverage .coverage.* htmlcov tmp
2320
rm -rf build/ dist/ src/*.egg-info
2421
rm -rf __pycache__ */__pycache__
2522

23+
sterile: clean
24+
rm -rf .tox .*_cache .venv
25+
2626
dist:
2727
python -m build --sdist --wheel
2828

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ extras =
88
dev
99
pass_env =
1010
FORCE_COLOR
11+
LINKLINT_*
1112
deps =
1213
sphinx8: sphinx>8,<9
1314
sphinx9: sphinx>9,<10

0 commit comments

Comments
 (0)