Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Changes here will be overwritten by Copier
_commit: 1c0960d
_commit: 0049f24
_src_path: git@github.com:inokufu/python-project-template.git
author_email: contact@inokufu.com
author_name: Inokufu
min_python_version: '3.14'
min_python_version: '3.13'
package_name: logger
project_description: Python logger
project_name: Logger
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,22 @@ repos:
args: [ --py312-plus ]

- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
rev: v2.4.2
hooks:
- id: codespell # See pyproject.toml for args
additional_dependencies:
- tomli

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.10.8
rev: 0.11.2
hooks:
- id: uv-lock

- repo: https://github.com/owenlamont/uv-secure
rev: 0.17.0
hooks:
- id: uv-secure
args: [ --show-severity, --ignore-unfixed, --severity=medium ]

- repo: https://github.com/mrtazz/checkmake.git
rev: 0.2.2
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.14
3.13
10 changes: 8 additions & 2 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.2] - 2026-03-27

### Changed

- Upgrade dependencies


## [0.3.1] - 2026-03-06

### Changed
Expand All @@ -15,8 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Python version to 3.14
- Migrated from Rye to uv
-Migrated from Rye to uv
- Type checking with ty

## [0.2.0] - 2025-07-17
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Key features:

### Prerequisites

- Python 3.14 or higher
- Python 3.13 or higher
- [uv](https://docs.astral.sh/uv/) for dependency management

### Installation
Expand Down
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[project]
name = "logger"
version = "0.3.1"
version = "0.3.2"
description = "Python logger"
authors = [
{ name = "Inokufu", email = "contact@inokufu.com" }
]
readme = "docs/README.md"
requires-python = ">= 3.14"
requires-python = ">= 3.13"

dependencies = [
"loguru>=0.7.3,<0.7.4",
Expand All @@ -21,19 +21,19 @@ dev = [
"diff-cover>=10.2.0,<10.3.0",
"griffe-inherited-docstrings>=1.1.3,<1.2.0",
"mkdocs>=1.6.1,<1.7.0",
"mkdocs-material>=9.7.4,<9.8.0",
"mkdocs-material>=9.7.6,<9.8.0",
"mkdocstrings-python>=2.0.3,<2.1.0",
"pre-commit>=4.5.1,<4.6.0",
"pytest>=9.0.2,<9.1.0",
"pytest-cov>=7.0.0,<7.1.0",
"pytest-cov>=7.1.0,<7.2.0",
"pytest-mock>=3.15.1,<3.16.0",
"ruff>=0.15.4,<0.15.5",
"ty>=0.0.20,<0.0.21",
"ruff>=0.15.8,<0.15.9",
"ty>=0.0.26,<0.0.27",
]

[tool.ruff]
output-format = "concise"
target-version = "py314"
target-version = "py313"
line-length = 88
indent-width = 4

Expand Down
2 changes: 1 addition & 1 deletion src/logger/loguru.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _log_with_context(
message: The message to log.
context: Additional contextual information to include with the log.
"""
log_data = {"message": message}
log_data: dict[str, Any] = {"message": message}
if context:
log_data["context"] = context

Expand Down
372 changes: 237 additions & 135 deletions uv.lock

Large diffs are not rendered by default.

Loading