From d71e4704ec585522a28ad005fc180781821b85c2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 8 May 2024 10:37:27 +0200 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#616) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 24.3.0 → 24.4.2](https://github.com/psf/black/compare/24.3.0...24.4.2) - [github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.4.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.5...v0.4.3) - [github.com/econchick/interrogate: 1.6.0 → 1.7.0](https://github.com/econchick/interrogate/compare/1.6.0...1.7.0) * Fix furo warning * Replace % by f * Silence linter --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Hynek Schlawack --- .pre-commit-config.yaml | 6 +++--- docs/conf.py | 2 +- src/structlog/_native.py | 3 +-- tests/test_config.py | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a80046f5..7bf1a15f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,18 +4,18 @@ ci: repos: - repo: https://github.com/psf/black - rev: 24.3.0 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.5 + rev: v0.4.3 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/econchick/interrogate - rev: 1.6.0 + rev: 1.7.0 hooks: - id: interrogate args: [tests] diff --git a/docs/conf.py b/docs/conf.py index f3ab0b3d..93eac7ff 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -90,7 +90,7 @@ html_theme = "furo" html_theme_options = { - "top_of_page_button": None, + "top_of_page_buttons": [], "light_css_variables": { "font-stack": "Inter, sans-serif", "font-stack--monospace": "BerkeleyMono, MonoLisa, ui-monospace, " diff --git a/src/structlog/_native.py b/src/structlog/_native.py index e4dbdb11..a96e6da2 100644 --- a/src/structlog/_native.py +++ b/src/structlog/_native.py @@ -210,8 +210,7 @@ async def alog( meths["amsg"] = meths["ainfo"] return type( - "BoundLoggerFilteringAt%s" - % (LEVEL_TO_NAME.get(min_level, "Notset").capitalize()), + f"BoundLoggerFilteringAt{LEVEL_TO_NAME.get(min_level, 'Notset').capitalize()}", (BoundLoggerBase,), meths, ) diff --git a/tests/test_config.py b/tests/test_config.py index c45fc0f0..cddcfd8b 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -51,7 +51,7 @@ def test_lazy_logger_is_not_detected_as_abstract_method(): See https://github.com/hynek/structlog/issues/229 """ - class Foo(metaclass=abc.ABCMeta): + class Foo(metaclass=abc.ABCMeta): # noqa: B024 log = structlog.get_logger() Foo()