Skip to content

Commit 8d2dcac

Browse files
authored
Merge pull request #30 from legend-exp/pre-commit-ci-update-config
chore: update pre-commit hooks
2 parents 3fe359f + f9f571a commit 8d2dcac

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.pre-commit-config.yaml

+10-10
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ci:
55

66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: "v4.4.0"
8+
rev: "v4.5.0"
99
hooks:
1010
- id: check-added-large-files
1111
- id: check-case-conflict
@@ -25,24 +25,24 @@ repos:
2525
- id: trailing-whitespace
2626

2727
- repo: https://github.com/psf/black
28-
rev: "23.3.0"
28+
rev: "23.12.1"
2929
hooks:
3030
- id: black-jupyter
3131
args: ["--line-length", "99"]
3232

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

3939
- repo: https://github.com/asottile/setup-cfg-fmt
40-
rev: "v2.4.0"
40+
rev: "v2.5.0"
4141
hooks:
4242
- id: setup-cfg-fmt
4343

4444
- repo: https://github.com/pre-commit/mirrors-mypy
45-
rev: "v1.4.1"
45+
rev: "v1.8.0"
4646
hooks:
4747
- id: mypy
4848
files: src
@@ -62,13 +62,13 @@ repos:
6262
stages: [manual]
6363

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

7070
- repo: https://github.com/shellcheck-py/shellcheck-py
71-
rev: "v0.9.0.5"
71+
rev: "v0.9.0.6"
7272
hooks:
7373
- id: shellcheck
7474

@@ -80,13 +80,13 @@ repos:
8080
- id: rst-inline-touching-normal
8181

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

8888
- repo: https://github.com/snakemake/snakefmt
89-
rev: v0.8.4
89+
rev: v0.8.5
9090
hooks:
9191
- id: snakefmt
9292
files: Snakefile*|\.smk

scripts/util/FileKey.py

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def get_filekey_from_pattern(cls, filename, pattern=None):
5555
else:
5656
key_pattern_rx = re.compile(smk.io.regex(pattern))
5757
if key_pattern_rx.match(filename) is None:
58-
pass
5958
return None
6059
else:
6160
d = key_pattern_rx.match(filename).groupdict()

0 commit comments

Comments
 (0)