Skip to content

Commit fab25be

Browse files
committed
V6.0.3
1 parent 88b5a69 commit fab25be

4 files changed

Lines changed: 14 additions & 132 deletions

File tree

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88
<a href="https://www.paypal.com/ncp/payment/6G9Z78QHUD4RJ"><img src="https://img.shields.io/badge/Donate-PayPal-brightgreen.svg?style=plastic" alt="Donate"/></a>
99
<a href="https://github.com/sponsors/ddc"><img src="https://img.shields.io/static/v1?style=plastic&label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=ff69b4" alt="Sponsor"/></a>
1010
<br>
11-
<a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg?style=plastic" alt="Code style: black"/></a>
12-
<a href="https://github.com/astral-sh/uv"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json?style=plastic" alt="uv"/></a>
13-
<a href="https://github.com/astral-sh/ruff"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json?style=plastic" alt="Ruff"/></a>
14-
<br>
15-
<a href="https://www.python.org/downloads"><img src="https://img.shields.io/pypi/pyversions/pythonLogs.svg?style=plastic&logo=python&cacheSeconds=3600" alt="Python"/></a>
1611
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg?style=plastic" alt="License: MIT"/></a>
1712
<a href="https://pepy.tech/projects/pythonLogs"><img src="https://static.pepy.tech/badge/pythonLogs?style=plastic" alt="PyPI Downloads"/></a>
1813
<a href="https://pypi.python.org/pypi/pythonLogs"><img src="https://img.shields.io/pypi/v/pythonLogs.svg?style=plastic&logo=python&cacheSeconds=3600" alt="PyPi"/></a>
1914
<br>
15+
<a href="https://www.python.org/downloads"><img src="https://img.shields.io/pypi/pyversions/pythonLogs.svg?style=plastic&logo=python&cacheSeconds=3600" alt="Python"/></a>
16+
<a href="https://github.com/astral-sh/uv"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json?style=plastic" alt="uv"/></a>
17+
<a href="https://github.com/astral-sh/ruff"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json?style=plastic" alt="Ruff"/></a>
18+
<br>
2019
<a href="https://github.com/ddc/pythonLogs/issues"><img src="https://img.shields.io/github/issues/ddc/pythonLogs?style=plastic" alt="issues"/></a>
2120
<a href="https://codecov.io/gh/ddc/pythonLogs"><img src="https://codecov.io/gh/ddc/pythonLogs/graph/badge.svg?token=XWB53034GI&style=plastic" alt="codecov"/></a>
2221
<a href="https://sonarcloud.io/dashboard?id=ddc_pythonLogs"><img src="https://sonarcloud.io/api/project_badges/measure?project=ddc_pythonLogs&metric=alert_status&style=plastic" alt="Quality Gate Status"/></a>

pyproject.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ dev = [
5555
"pytest-cov>=7.0.0",
5656
"poethepoet>=0.41.0",
5757
"ruff>=0.15.1",
58-
"black>=26.1.0",
5958
]
6059

6160
[tool.poe.tasks]
62-
linter.shell = "uv run ruff check --fix . && uv run black ."
61+
linter.shell = "uv run ruff check --fix . && uv run ruff format ."
6362
profile = "uv run python -m cProfile -o cprofile_unit.prof -m pytest --no-cov"
6463
tests = "uv run pytest"
6564
updatedev.sequence = ["linter", {shell = "uv lock --upgrade && uv sync --all-extras --group dev"}]
@@ -95,10 +94,6 @@ exclude_lines = [
9594
"@(abc\\.)?abstractmethod",
9695
]
9796

98-
[tool.black]
99-
line-length = 120
100-
skip-string-normalization = true
101-
10297
[tool.ruff]
10398
line-length = 120
10499
target-version = "py311"

tests/thread_safety/test_thread_safety.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ def stress_worker():
240240
# Just verify it has at least some loggers and doesn't exceed the total
241241
registry = LoggerFactory.get_registered_loggers()
242242
assert len(registry) > 0, "Registry should have at least one logger"
243-
assert len(registry) <= len(
244-
logger_names
245-
), f"Registry has {len(registry)} loggers, expected at most {len(logger_names)}"
243+
assert len(registry) <= len(logger_names), (
244+
f"Registry has {len(registry)} loggers, expected at most {len(logger_names)}"
245+
)
246246

247247
# Verify that loggers in the registry are from our expected set
248248
for logger_name in registry.keys():
@@ -375,9 +375,9 @@ def _verify_thread_results(self, thread_results, num_threads):
375375
"""Helper to verify all thread results are successful."""
376376
for worker_id in range(num_threads):
377377
assert worker_id in thread_results
378-
assert (
379-
"error" not in thread_results[worker_id]
380-
), f"Thread {worker_id} failed: {thread_results[worker_id].get('error')}"
378+
assert "error" not in thread_results[worker_id], (
379+
f"Thread {worker_id} failed: {thread_results[worker_id].get('error')}"
380+
)
381381
assert "messages" in thread_results[worker_id]
382382
assert len(thread_results[worker_id]["messages"]) == 10
383383

0 commit comments

Comments
 (0)