Skip to content

Commit 5119db0

Browse files
[pre-commit.ci] pre-commit autoupdate (#11)
1 parent fa3fcb9 commit 5119db0

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

.pre-commit-config.yaml

+4-9
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
args: [--branch, main]
2727
- id: trailing-whitespace
2828
- repo: https://github.com/pre-commit/pygrep-hooks
29-
rev: v1.9.0
29+
rev: v1.10.0
3030
hooks:
3131
- id: python-check-blanket-noqa
3232
- id: python-check-mock-methods
@@ -48,22 +48,17 @@ repos:
4848
{{cookiecutter.package_name}}/setup.cfg
4949
)$
5050
- repo: https://github.com/psf/black
51-
rev: 22.12.0
51+
rev: 23.1.0
5252
hooks:
5353
- id: black
54-
- repo: https://github.com/PyCQA/docformatter
55-
rev: v1.5.1
56-
hooks:
57-
- id: docformatter
58-
args: [--in-place, --wrap-summaries, "88", --wrap-descriptions, "88", --blank]
5954
- repo: https://github.com/charliermarsh/ruff-pre-commit
60-
rev: v0.0.212
55+
rev: v0.0.241
6156
hooks:
6257
- id: ruff
6358
args: [hooks, tests]
6459
pass_filenames: false
6560
- repo: https://github.com/dosisod/refurb
66-
rev: v1.9.1
61+
rev: v1.10.0
6762
hooks:
6863
- id: refurb
6964
args: [--ignore, FURB126]

hooks/post_gen_project.py

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def main() -> None:
6060
)
6161

6262
if "{{ cookiecutter.create_conda_environment_at_finish }}" == "yes":
63-
6463
if shutil.which("mamba") is not None:
6564
conda_exe = shutil.which("mamba")
6665
else:

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ extend-ignore = [
4242
"EM", # flake8-errmsg
4343
"ANN401", # flake8-annotate typing.Any
4444
"PD", # pandas-vet
45+
"COM812", # trailing comma missing, but black takes care of that
4546
]
4647

4748

4849
[tool.ruff.per-file-ignores]
50+
"hooks/post_gen_project.py" = ["PLR0133"]
51+
"hooks/*" = ["INP001"]
4952
"tests/*" = ["D", "ANN"]
5053

5154

{{cookiecutter.package_name}}/.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ repos:
4040
hooks:
4141
- id: setup-cfg-fmt
4242
- repo: https://github.com/psf/black
43-
rev: 22.12.0
43+
rev: 23.1.0
4444
hooks:
4545
- id: black
4646
- repo: https://github.com/PyCQA/docformatter
@@ -49,7 +49,7 @@ repos:
4949
- id: docformatter
5050
args: [--in-place, --wrap-summaries, "88", --wrap-descriptions, "88", --blank]
5151
{% if cookiecutter.python_version in ["3.10", "3.11", "3.12"] %}- repo: https://github.com/charliermarsh/ruff-pre-commit
52-
rev: v0.0.212
52+
rev: v0.0.241
5353
hooks:
5454
- id: ruff
5555
- repo: https://github.com/dosisod/refurb

{{cookiecutter.package_name}}/pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ extend-ignore = [
5555
"EM", # flake8-errmsg
5656
"ANN401", # flake8-annotate typing.Any
5757
"PD", # pandas-vet
58+
"COM812", # trailing comma missing, but black takes care of that
5859
]
5960

6061

0 commit comments

Comments
 (0)