feat(template): logging manager, bump_version path, Copier defaults#27
Merged
buddingengineers12345 merged 1 commit intomainfrom Apr 8, 2026
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Applies the
temp/reference layout to the Copier template and related repo config (TODO items).Template
logging_manager.py.jinjanow matches the reference (human vs LLM structlog modes,configure_logging,get_logger, context helpers, section/field helpers). Removedlogging_config.py.jinjaand theinclude_logging_setupCopier option.test_support.py.jinjaand newconftest.py.jinja(logging reset fixture) aligned with reference.justfile.jinjagainsslow,test-verbose,test-debug,test-lf,test-first-fail; defaulttestis minimal-output.pyproject.toml.jinja: pytestaddopts/filterwarningslike reference; stop omittingcommon/*from coverage.bump_versionmoved tosrc/{{ package_name }}/common/bump_version.py;release.yml.jinjaupdated accordingly.Copier / repo
include_git_cliffdefaults totrue.uv self updatefrom post-generation tasks.find ... -empty -deleteto drop stray empty files after render._skip_if_exists:bump_versionpath updated (sync script +uv run python scripts/sync_skip_if_exists.py --write).Meta-repo
include = ["tests", "scripts"]so localtemp/scratch files do not fail typecheck.Tests
test_generate_defaults_only_clinow uses--vcs-ref HEADso it always exercises the current tree (not only the latest tag).Verification
just test,just lint,just typeMade with Cursor