Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#616)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 24.3.0 → 24.4.2](psf/black@24.3.0...24.4.2)
- [github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.4.3](astral-sh/ruff-pre-commit@v0.3.5...v0.4.3)
- [github.com/econchick/interrogate: 1.6.0 → 1.7.0](econchick/interrogate@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 <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and hynek authored May 8, 2024
1 parent 00fbc15 commit d71e470
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, "
Expand Down
3 changes: 1 addition & 2 deletions src/structlog/_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d71e470

Please sign in to comment.