Skip to content
This repository was archived by the owner on Apr 24, 2026. It is now read-only.

Commit 777b66e

Browse files
committed
fix: proper tox/pytest setup — remove skip_install, split dependency groups
- Remove skip_install=true and manual deps list from tox.ini; use dependency_groups = test so tox installs the package (and its deps) from pyproject.toml properly - Split dependency-groups into test (pytest, pytest-cov) and dev (tox, pyyaml, git-cliff); drop unused pyfiglet - Add pythonpath = ["src"] to pytest config as safety net for direct runs
1 parent f561aa4 commit 777b66e

2 files changed

Lines changed: 4 additions & 14 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,11 @@ force-include = {"src/devcode.py" = "devcode.py", "src/templates" = "dev_code_te
3636

3737
[tool.pytest.ini_options]
3838
testpaths = ["tests"]
39+
pythonpath = ["src"]
3940

4041
[dependency-groups]
41-
dev = [
42-
"pytest>=7.0.1",
43-
"pyfiglet>=1.0.4",
44-
"pytest-cov>=4.0",
45-
"tox>=4.0",
46-
"pyyaml>=6.0",
47-
"git-cliff>=2.0",
48-
]
42+
test = ["pytest>=7", "pytest-cov>=4"]
43+
dev = ["tox>=4", "pyyaml>=6", "git-cliff>=2"]
4944

5045
[tool.hatch.metadata.hooks.fancy-pypi-readme]
5146
content-type = "text/markdown"

tox.ini

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
envlist = py310, py311, py312, py313
33

44
[testenv]
5-
skip_install = true
6-
deps =
7-
pytest
8-
pytest-cov
9-
pyfiglet
10-
click>=8.0
5+
dependency_groups = test
116
commands =
127
pytest --cov=src --cov-report=term-missing --cov-report=xml

0 commit comments

Comments
 (0)