Skip to content

Commit 2aa09f9

Browse files
committed
📦🧪 Limit pytest to specific dirs
1 parent fe5c9b7 commit 2aa09f9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

‎ctt.toml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ _extra_tasks = [
99
"uv sync --resolution highest",
1010
"just build-docs",
1111

12-
"uvx --with sp-repo-review[cli] repo-review . --ignore PY007,PP303,RTD100,PC191 --show errskip",
12+
"uvx --with sp-repo-review[cli] repo-review . --ignore PY007,RTD100,PC191 --show errskip",
1313
# PY007 Supports an easy task runner (nox, tox, pixi, etc.)
1414
"[ -f justfile ]",
15-
# PP303 Sets the test paths
16-
"[ -d tests ]",
1715
# PC191 Ruff show fixes if fixes enabled
1816
# good check, but false-positive on ruff-isort
1917
### fix later:

‎project_name/pyproject.toml.jinja‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ version.path = "src/{{ package_name }}/__init__.py"
126126

127127
[tool.pytest.ini_options]
128128
minversion = "7.0"
129+
testpaths = [
130+
"src/",
131+
"tests/",
132+
]
129133
addopts = [
130134
## testing
131135
"--doctest-modules",

0 commit comments

Comments
 (0)