Skip to content

Commit

Permalink
Merge pull request #30 from legend-exp/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
chore: update pre-commit hooks
  • Loading branch information
ggmarshall authored Jan 3, 2024
2 parents 3fe359f + f9f571a commit 8d2dcac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
rev: "v4.5.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -25,24 +25,24 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: "23.3.0"
rev: "23.12.1"
hooks:
- id: black-jupyter
args: ["--line-length", "99"]

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.275"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.9"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]

- repo: https://github.com/asottile/setup-cfg-fmt
rev: "v2.4.0"
rev: "v2.5.0"
hooks:
- id: setup-cfg-fmt

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.4.1"
rev: "v1.8.0"
hooks:
- id: mypy
files: src
Expand All @@ -62,13 +62,13 @@ repos:
stages: [manual]

- repo: https://github.com/codespell-project/codespell
rev: "v2.2.5"
rev: "v2.2.6"
hooks:
- id: codespell
args: ["-L", "nd,unparseable,compiletime,livetime,fom,puls"]

- repo: https://github.com/shellcheck-py/shellcheck-py
rev: "v0.9.0.5"
rev: "v0.9.0.6"
hooks:
- id: shellcheck

Expand All @@ -80,13 +80,13 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.9-for-vscode"
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
types_or: [json]

- repo: https://github.com/snakemake/snakefmt
rev: v0.8.4
rev: v0.8.5
hooks:
- id: snakefmt
files: Snakefile*|\.smk
1 change: 0 additions & 1 deletion scripts/util/FileKey.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def get_filekey_from_pattern(cls, filename, pattern=None):
else:
key_pattern_rx = re.compile(smk.io.regex(pattern))
if key_pattern_rx.match(filename) is None:
pass
return None
else:
d = key_pattern_rx.match(filename).groupdict()
Expand Down

0 comments on commit 8d2dcac

Please sign in to comment.