Skip to content

Commit 4646435

Browse files
committed
chore(pyproject): Refine project configuration
Remove `icecream` from the `dev` dependency group to reduce default development dependencies. This allows users to explicitly add `icecream` if it is required for their specific development workflow. Adjust `pytest` configuration by: - Removing `--strict-config` and `--strict-markers` to provide more flexibility and avoid potential conflicts with certain test setups. - Adding `consider_namespace_packages = true` to ensure pytest correctly discovers and runs tests within namespace packages.
1 parent d55871e commit 4646435

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

template/pyproject.toml.jinja

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dynamic = ["version"]
3838
"Source Code" = "https://github.com/{{ github_user }}/{{ github_repo }}"
3939

4040
[dependency-groups]
41-
dev = ["icecream>=2,<3"]
41+
dev = []
4242
build = ["check-wheel-contents>=0.6,<0.7", "hatch>=1,<2", "twine>=6,<7"]
4343
docs = ["liblaf-mkdocs-preset>=0.2,<0.3", "mkdocs>=1,<2"]
4444
test = ["liblaf-pytest-preset>=0.1,<0.2", "pytest>=9,<10"]
@@ -92,10 +92,9 @@ addopts = [
9292
"--doctest-modules",
9393
"--hypothesis-show-statistics",
9494
"--import-mode=importlib",
95-
"--showlocals",
96-
"--strict-config",
97-
"--strict-markers"
95+
"--showlocals"
9896
]
97+
consider_namespace_packages = true
9998
strict = true
10099
testpaths = ["benches", "src", "tests"]
101100

0 commit comments

Comments
 (0)