diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 28154a6..c913c94 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,14 +18,14 @@ repos: - id: check-yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.10" + rev: "v0.5.1" hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.10.1 hooks: - id: mypy files: src @@ -43,7 +43,7 @@ repos: types_or: [yaml, markdown, html, css, scss, javascript, json] - repo: https://github.com/adamchainz/blacken-docs - rev: 1.16.0 + rev: 1.18.0 hooks: - id: blacken-docs args: ["-E"] diff --git a/tests/test_missing_all.py b/tests/test_missing_all.py index cef3e5c..3336fc5 100644 --- a/tests/test_missing_all.py +++ b/tests/test_missing_all.py @@ -8,9 +8,7 @@ def filter_module(item: str) -> bool: return True if item.startswith("_"): return False - if item in {"List"}: - return False - return True + return item not in {"List"} @pytest.mark.parametrize(