diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 16b2035a..331ec8b0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,7 +29,7 @@ repos: hooks: - id: sort-all - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.2 + rev: v0.4.9 hooks: - id: ruff-format - id: ruff @@ -63,7 +63,7 @@ repos: - id: nbstripout exclude: (docs) - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell additional_dependencies: [tomli] diff --git a/docs/source/conf.py b/docs/source/conf.py index 22848175..efe99979 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -102,7 +102,7 @@ # Linkcode, based on numpy doc/source/conf.py -def linkcode_resolve(domain: str, info: dict[str, str]) -> str: # noqa: C901, PLR0912 +def linkcode_resolve(domain: str, info: dict[str, str]) -> str: # noqa: C901 """Determine the URL corresponding to Python object.""" if domain != "py": return None diff --git a/src/_pytask/warnings_utils.py b/src/_pytask/warnings_utils.py index 61c6597b..7cbf8c7e 100644 --- a/src/_pytask/warnings_utils.py +++ b/src/_pytask/warnings_utils.py @@ -35,7 +35,7 @@ class WarningReport(NamedTuple): @functools.lru_cache(maxsize=50) -def parse_warning_filter( # noqa: PLR0912, C901 +def parse_warning_filter( # noqa: C901 arg: str, *, escape: bool ) -> tuple[warnings._ActionKind, str, type[Warning], str, int]: """Parse a warnings filter string.