Skip to content

Commit 4d5cbc9

Browse files
committed
fix(pyproject): define test extra as array per PEP 621
1 parent 054df53 commit 4d5cbc9

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

‎pyproject.toml‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ build-backend = "setuptools.build_meta"
6666
[tool.setuptools.packages.find]
6767
exclude = ["Tests"]
6868

69-
[project.optional-dependencies.test]
70-
numpy = "*"
71-
Pillow = "*"
69+
[project.optional-dependencies]
70+
test = [
71+
"pytest>=7.4.0",
72+
"flake8>=6.1.0",
73+
]
74+
75+
[tool.pytest.ini_options]
76+
addopts = "--cov=PyTokenCounter --cov-report=term-missing"
77+
testpaths = ["Tests"]
78+
pythonpath = ["PyTokenCounter"]

0 commit comments

Comments
 (0)