diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 30c334d4..310b5cc5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: - id: check-useless-excludes - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.2 + rev: v0.3.5 hooks: - id: ruff args: [--fix] @@ -82,7 +82,7 @@ repos: exclude: (?x)^(labels/.*\.toml)$ - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v8.6.0 + rev: v8.6.1 hooks: - id: cspell @@ -108,6 +108,6 @@ repos: - python - repo: https://github.com/ComPWA/mirrors-pyright - rev: v1.1.353 + rev: v1.1.357 hooks: - id: pyright diff --git a/src/compwa_policy/check_dev_files/github_workflows.py b/src/compwa_policy/check_dev_files/github_workflows.py index f57d94bf..a8026617 100644 --- a/src/compwa_policy/check_dev_files/github_workflows.py +++ b/src/compwa_policy/check_dev_files/github_workflows.py @@ -197,9 +197,7 @@ def __update_style_section( def __is_remove_style_job(precommit: Precommit) -> bool: precommit_ci = precommit.document.get("ci") - if precommit_ci is not None and "skip" not in precommit_ci: - return True - return False + return precommit_ci is not None and "skip" not in precommit_ci def __update_pytest_section(