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()