Skip to content

Commit e2dcf96

Browse files
[pre-commit.ci] pre-commit autoupdate, fix 'sphinx.configuration' (#561)
updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.1](astral-sh/ruff-pre-commit@v0.8.6...v0.9.1) * [sphinx] Add an explicit sphinx.configuration value See https://about.readthedocs.com/blog/2024/12/deprecate-config-files-without-sphinx-or-mkdocs-config/ Co-authored-by: Pierre Sassoulas <[email protected]>
1 parent b8a00b5 commit e2dcf96

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: "v0.8.6"
3+
rev: "v0.9.1"
44
hooks:
55
- id: ruff
66
args: ["--fix"]

.readthedocs.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
version: 2
22

3+
sphinx:
4+
configuration: docs/conf.py
5+
36
python:
47
install:
58
# Without this, sphinx can't find pluggy's version.

src/pluggy/_hooks.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,9 @@ def __call__(self, **kwargs: object) -> Any:
502502
Returns the result(s) of calling all registered plugins, see
503503
:ref:`calling`.
504504
"""
505-
assert (
506-
not self.is_historic()
507-
), "Cannot directly call a historic hook - use call_historic instead."
505+
assert not self.is_historic(), (
506+
"Cannot directly call a historic hook - use call_historic instead."
507+
)
508508
self._verify_all_args_are_provided(kwargs)
509509
firstresult = self.spec.opts.get("firstresult", False) if self.spec else False
510510
# Copy because plugins may register other plugins during iteration (#438).
@@ -543,9 +543,9 @@ def call_extra(
543543
"""Call the hook with some additional temporarily participating
544544
methods using the specified ``kwargs`` as call parameters, see
545545
:ref:`call_extra`."""
546-
assert (
547-
not self.is_historic()
548-
), "Cannot directly call a historic hook - use call_historic instead."
546+
assert not self.is_historic(), (
547+
"Cannot directly call a historic hook - use call_historic instead."
548+
)
549549
self._verify_all_args_are_provided(kwargs)
550550
opts: HookimplOpts = {
551551
"wrapper": False,

0 commit comments

Comments
 (0)