Skip to content

Package review fixes#1

Merged
bjorngun merged 16 commits into
mainfrom
package-review-fixes
Mar 3, 2026
Merged

Package review fixes#1
bjorngun merged 16 commits into
mainfrom
package-review-fixes

Conversation

@bjorngun
Copy link
Copy Markdown
Owner

@bjorngun bjorngun commented Mar 3, 2026

Package Review Fixes

Addresses all issues identified in the pip package review of bosos-dev-tools v1.0.1.

Packaging Metadata

  • Add py.typed PEP 561 marker for type checker support
  • Add __version__ attribute via importlib.metadata
  • Add Homepage URL to PyPI project metadata

Code Quality

  • Breaking: timing_decorator no longer prints by default — requires TIMING=True
  • Fix progress_bar type hint from Iterable to Collection (reflects len() requirement)
  • Remove duplicate LOGGER_DAY_SPECIFIC row from README

Test Coverage

  • Add subprocess tests for python -m dev_tools.md_link_checker and python -m dev_tools.codemap_generator
  • Improve logger_settings.py coverage: is_logs_sorted_by_days(), log_exit_code(), error paths, debug-mode branch, _default_logging_config()
  • 199 tests pass, pylint 10/10

CI & Documentation

  • Extract publish job to separate publish.yml triggered by release: [published] — fixes PR merges not publishing to PyPI
  • Expand CI test matrix: all Python versions (3.10–3.14) on Windows + Ubuntu, plus macOS 3.12 (11 jobs)
  • Document logging.conf discovery and fallback behavior in README
  • Update cli_help.py to reflect timing_decorator behavioral change

bjorngun added 11 commits March 3, 2026 19:03
…rker for type checker support\n- Add __version__ via importlib.metadata to __init__.py\n- Add Homepage URL to pyproject.toml [project.urls]\n- Update plan Task Index (tasks 0-2 done)"
…mandatory gate task (⏩ Phase N Summary) as last row of every phase\n in the Task Index — makes phase summary a tracked deliverable, not just a callout\n- Replace ⚠️ phase-end callouts with self-contained 🛑 callouts that inline\n  all 3 required steps (run tests, write summary, commit separately)\n- Add Rule 5 to Phase Guidelines explaining gate task format and purpose\n- Update canonical Task Index example with gate task rows\n- Retrofit existing package-review-fixes-plan.md with new pattern"
…Add Phase Summary Gate Task Template section with verbatim copy-paste\n block that plan authors insert as the last task in every phase\n- Gate tasks now have their own ### heading and 5-step checklist\n (run tests, run lint, write summary, mark done, commit)\n- Replace blockquote callouts with full task detail sections\n- Simplify After Completing a Phase to point at the template\n- Retrofit package-review-fixes-plan.md with new format"
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@bjorngun bjorngun requested a review from Copilot March 3, 2026 19:07
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses packaging and quality issues identified during the PyPI package review for bosos-dev-tools, improving distribution metadata, runtime behavior, documentation, CI coverage, and test coverage across CLI entry points and logging utilities.

Changes:

  • Adds typed-package and metadata improvements (py.typed, __version__, PyPI Homepage URL).
  • Adjusts runtime behavior and API docs (notably timing_decorator output gating; progress_bar typing update).
  • Expands tests and CI (subprocess python -m ... tests; broader OS/Python matrix) and updates documentation/changelog.

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/tests/test_md_link_checker.py Adds subprocess tests for python -m dev_tools.md_link_checker.
src/tests/test_codemap_generator.py Adds subprocess tests for python -m dev_tools.codemap_generator.
src/tests/test_logger_settings.py Adds tests for additional logger_settings branches/utilities.
src/tests/test_custom_decorators.py Updates tests for timing_decorator behavior when TIMING is on/off.
src/dev_tools/progress_bar.py Updates type hints/docs to reflect len() requirement.
src/dev_tools/custom_decorators.py Changes timing_decorator to only print/log when TIMING is enabled; updates docstring.
src/dev_tools/cli_help.py Updates CLI/API help text to reflect the timing behavior change.
src/dev_tools/__init__.py Adds __version__ and exports it via __all__.
src/dev_tools/py.typed Adds PEP 561 marker file for typed-package support.
pyproject.toml Adds Homepage URL to project metadata.
.github/workflows/test.yml Expands test matrix to additional OS targets.
README.md Documents logging config discovery/fallback; removes duplicate env var row.
CHANGELOG.md Documents the set of package-review fixes under Unreleased.
docs/ai-context/planning-instructions.md Refines phase summary “gate task” protocol/template.

Comment thread src/dev_tools/progress_bar.py Outdated
Comment thread src/dev_tools/progress_bar.py Outdated
Comment thread src/dev_tools/__init__.py Outdated
Comment thread pyproject.toml
Comment thread src/tests/test_logger_settings.py
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 3, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 3, 2026

@bjorngun I've opened a new pull request, #2, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 3, 2026

@bjorngun I've opened a new pull request, #3, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 4 commits March 3, 2026 19:34
@bjorngun bjorngun force-pushed the package-review-fixes branch 2 times, most recently from 85d1220 to 025b230 Compare March 3, 2026 19:45
@bjorngun bjorngun merged commit da65ff5 into main Mar 3, 2026
13 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.

3 participants