Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ addopts = "--basetemp=/tmp/pytest"

[tool.coverage.run]
source = ["src", "tests"]
omit = ["tests/**/conftest.py"]
omit = ["tests/**/conftest.py", "tests/*"]
# For avoiding sqlite3 concurrency issues on CIFS drives:
data_file = "/tmp/python_template/.coverage"

Expand All @@ -78,6 +78,7 @@ exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
"if DEBUG_PRINT:",

# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
Expand Down
7 changes: 7 additions & 0 deletions src/python_template/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""Import package modules for direct import from package."""

from .get_unique_filename import get_unique_filename
from .split_args_for_inits import (
LEFTOVERS,
SplitInitMixin,
apply_split_inits,
auto_split_init,
split_args_for_inits_strict_kwargs,
)
Loading