Skip to content

feat(template): logging manager, bump_version path, Copier defaults#27

Merged
buddingengineers12345 merged 1 commit intomainfrom
feat/template-logging-bump-copier-tasks
Apr 8, 2026
Merged

feat(template): logging manager, bump_version path, Copier defaults#27
buddingengineers12345 merged 1 commit intomainfrom
feat/template-logging-bump-copier-tasks

Conversation

@buddingengineers12345
Copy link
Copy Markdown
Owner

Summary

Applies the temp/ reference layout to the Copier template and related repo config (TODO items).

Template

  • Logging: logging_manager.py.jinja now matches the reference (human vs LLM structlog modes, configure_logging, get_logger, context helpers, section/field helpers). Removed logging_config.py.jinja and the include_logging_setup Copier option.
  • Tests: test_support.py.jinja and new conftest.py.jinja (logging reset fixture) aligned with reference.
  • Tooling: justfile.jinja gains slow, test-verbose, test-debug, test-lf, test-first-fail; default test is minimal-output. pyproject.toml.jinja: pytest addopts/filterwarnings like reference; stop omitting common/* from coverage.
  • Releases: bump_version moved to src/{{ package_name }}/common/bump_version.py; release.yml.jinja updated accordingly.

Copier / repo

  • include_git_cliff defaults to true.
  • Removed uv self update from post-generation tasks.
  • Post-gen find ... -empty -delete to drop stray empty files after render.
  • _skip_if_exists: bump_version path updated (sync script + uv run python scripts/sync_skip_if_exists.py --write).

Meta-repo

  • basedpyright: include = ["tests", "scripts"] so local temp/ scratch files do not fail typecheck.

Tests

  • test_generate_defaults_only_cli now uses --vcs-ref HEAD so it always exercises the current tree (not only the latest tag).

Verification

  • just test, just lint, just type

Made with Cursor

…rence

- Replace logging_manager with human/LLM structlog setup from reference; drop logging_config
- Add tests/conftest.py to reset logging between tests; expand test_support and pytest addopts
- Extend generated justfile with slow/verbose/debug/lf/x test recipes; drop common/* coverage omit
- Move bump_version to src/<pkg>/common; update release workflow and _skip_if_exists sync
- Copier: default include_git_cliff true; remove include_logging_setup and uv self update
- Post-gen: delete empty files after render; basedpyright include tests+scripts for template repo
- Fix defaults-only test to use --vcs-ref HEAD so it exercises the working tree

Made-with: Cursor
@buddingengineers12345 buddingengineers12345 merged commit 13a0898 into main Apr 8, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants