Skip to content

Update Python version to 3.11 in workflows and configurations - #90

Merged
bybatkhuu merged 1 commit into
mainfrom
dev
Sep 14, 2026
Merged

bybatkhuu merged 1 commit into
mainfrom
dev

Conversation

@bybatkhuu

Copy link
Copy Markdown
Owner

This pull request upgrades the project to use Python 3.11 throughout the codebase and CI/CD workflows, and refactors internal type imports for better maintainability. The most significant changes are grouped below:

Python Version Upgrade:

  • Updated all GitHub Actions workflow files (.github/workflows/*.yml), .pre-commit-config.yaml, and .python-version to use Python 3.11 instead of 3.10. Also added Python 3.14 to the pyproject.toml classifiers. [1] [2] [3] [4] [5] [6] [7]

Internal Typing Refactor:

  • Replaced direct imports and TYPE_CHECKING blocks for Loguru types (Record, Message) with imports from the local .typing module in src/beans_logging/filters.py, src/beans_logging/formats.py, src/beans_logging/rotators.py, src/beans_logging/schemas.py, and src/beans_logging/sinks.py. [1] [2] [3] [4] [5]
  • Updated function signatures throughout these modules to use the imported Record and Message types directly, improving type clarity and consistency. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Type Alias and Callable Signature Updates:

  • Refined type aliases in src/beans_logging/schemas.py to use the new direct Record and Message type imports for all relevant callables and unions. [1] [2]

These changes ensure the project is up-to-date with Python 3.11 and improve maintainability by centralizing Loguru type definitions.

@bybatkhuu bybatkhuu self-assigned this Sep 14, 2026
Copilot AI lite review requested due to automatic review settings September 14, 2026 11:42
@bybatkhuu bybatkhuu added bug [🐛 Fixes] PATCH version - Something isn't working major [💥 Breaking Changes] MAJOR version labels Sep 14, 2026
@bybatkhuu
bybatkhuu merged commit 9d9c6df into main Sep 14, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved review issues were identified.

Pull request overview

Updates CI and development tooling to Python 3.11, adds Python 3.14 metadata, and centralizes Loguru type definitions.

Changes:

  • Updates workflows, pre-commit, and local Python versions to 3.11.
  • Adds the Python 3.14 classifier.
  • Refactors shared Record and Message type annotations.
File summaries
File Description
src/beans_logging/sinks.py Uses shared Message type.
src/beans_logging/schemas.py Centralizes callable type aliases.
src/beans_logging/rotators.py Uses shared Message type.
src/beans_logging/formats.py Uses shared Record type.
src/beans_logging/filters.py Uses shared Record type.
pyproject.toml Adds Python 3.14 classifier.
.python-version Sets local Python to 3.11.
.pre-commit-config.yaml Configures pre-commit for Python 3.11.
.github/workflows/publish-docs.yml Uses Python 3.11.
.github/workflows/pre-commit.yml Uses Python 3.11.
.github/workflows/2.build-publish.yml Uses Python 3.11.
.github/workflows/1.bump-version.yml Uses Python 3.11.
Review details
  • Files reviewed: 12/12 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@bybatkhuu bybatkhuu removed the major [💥 Breaking Changes] MAJOR version label Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug [🐛 Fixes] PATCH version - Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants