Skip to content

Commit

Permalink
MAINT: autoupdate pre-commit hooks (#338)
Browse files Browse the repository at this point in the history
* MAINT: address Ruff linting issues

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Remco de Boer <29308176+redeboer@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] and redeboer authored Apr 6, 2024
1 parent a06d363 commit 2c71333
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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

Expand All @@ -108,6 +108,6 @@ repos:
- python

- repo: https://github.com/ComPWA/mirrors-pyright
rev: v1.1.353
rev: v1.1.357
hooks:
- id: pyright
4 changes: 1 addition & 3 deletions src/compwa_policy/check_dev_files/github_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2c71333

Please sign in to comment.