Skip to content

Release PR for 2025-12-10 10:25#45

Merged
disafronov merged 7 commits into
releasefrom
main
Dec 10, 2025
Merged

Release PR for 2025-12-10 10:25#45
disafronov merged 7 commits into
releasefrom
main

Conversation

@disafronov
Copy link
Copy Markdown
Owner

@disafronov disafronov commented Dec 10, 2025

Changelog (#45)

📚 Documentation

  • (schema_loader) clarify schema caching behavior

♻️ Refactoring

  • (schema_loader) streamline cache validation logic

🧹 Chores

  • add dead code detection and update dependencies
  • update Vulture configuration in pyproject.toml
  • update Makefile and GitHub workflow for all checks
  • add pre-push hook for dead code detection
  • (release) 0.3.1-rc.1

disafronov and others added 7 commits December 10, 2025 13:43
- Introduced a new phony target `dead-code` in the Makefile to check for dead code using Vulture.
- Updated `pyproject.toml` to include Vulture as a dependency and configured its settings.
- Enhanced the `uv.lock` file to reflect the new dependency structure and versions.

These changes improve code quality by enabling dead code detection in the project.

Signed-off-by: Dmitrii Safronov <zimniy@cyberbrain.cc>
- Modified the Vulture settings to exclude only the "__pycache__" directory from dead code detection, removing the previous exclusions for "tests" and ".venv".
- Added an ignore rule for names "cls" to accommodate Pydantic validators.

These changes refine the dead code detection configuration, enhancing its effectiveness.

Signed-off-by: Dmitrii Safronov <zimniy@cyberbrain.cc>
- Modified the Makefile to include a new `dead-code` target in the `all` command, allowing for a comprehensive check that includes formatting, linting, testing, and dead code detection.
- Updated the GitHub Actions workflow to run the `make all` command instead of separate lint and test commands, streamlining the CI process.

These changes enhance the efficiency of the development workflow by consolidating checks into a single command.

Signed-off-by: Dmitrii Safronov <zimniy@cyberbrain.cc>
- Introduced a new pre-push hook in the pre-commit configuration to run the `make dead-code` command, enhancing the workflow by ensuring dead code checks are performed before code is pushed.

This addition improves code quality by integrating dead code detection into the development process.

Signed-off-by: Dmitrii Safronov <zimniy@cyberbrain.cc>
- Updated the documentation in schema_loader.py to specify that the schema is cached process-wide and is thread-safe. This change enhances clarity regarding the behavior of schema caching and the need for process restarts to pick up on-disk changes.

These improvements aim to provide better guidance for users regarding schema management.

Signed-off-by: Dmitrii Safronov <zimniy@cyberbrain.cc>
- Refactored the cache validation logic in the schema_loader.py to eliminate unnecessary locking and improve readability. The checks for cached paths now directly assess the existence of the resolved schema path and the current working directory without redundant global declarations.
- This change enhances the efficiency of the caching mechanism and clarifies the conditions under which the cache is invalidated.

Signed-off-by: Dmitrii Safronov <zimniy@cyberbrain.cc>
## [0.3.1-rc.1](v0.3.0...v0.3.1-rc.1) (2025-12-10)

Signed-off-by: semantic-release-bot <semantic-release-bot@martynus.net>
@github-actions github-actions Bot changed the title New release Release PR for 2025-12-10 10:25 Dec 10, 2025
@disafronov disafronov merged commit b77a6bf into release Dec 10, 2025
17 checks passed
@disafronov
Copy link
Copy Markdown
Owner Author

🎉 This PR is included in version 0.3.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants