Skip to content

[pre-commit.ci] pre-commit autoupdate #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
args: [--branch, main]
- id: trailing-whitespace
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-mock-methods
Expand All @@ -48,22 +48,17 @@ repos:
{{cookiecutter.package_name}}/setup.cfg
)$
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/docformatter
rev: v1.5.1
hooks:
- id: docformatter
args: [--in-place, --wrap-summaries, "88", --wrap-descriptions, "88", --blank]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.212
rev: v0.0.241
hooks:
- id: ruff
args: [hooks, tests]
pass_filenames: false
- repo: https://github.com/dosisod/refurb
rev: v1.9.1
rev: v1.10.0
hooks:
- id: refurb
args: [--ignore, FURB126]
Expand Down
1 change: 0 additions & 1 deletion hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def main() -> None:
)

if "{{ cookiecutter.create_conda_environment_at_finish }}" == "yes":

if shutil.which("mamba") is not None:
conda_exe = shutil.which("mamba")
else:
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@ extend-ignore = [
"EM", # flake8-errmsg
"ANN401", # flake8-annotate typing.Any
"PD", # pandas-vet
"COM812", # trailing comma missing, but black takes care of that
]


[tool.ruff.per-file-ignores]
"hooks/post_gen_project.py" = ["PLR0133"]
"hooks/*" = ["INP001"]
"tests/*" = ["D", "ANN"]


Expand Down
4 changes: 2 additions & 2 deletions {{cookiecutter.package_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ repos:
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/docformatter
Expand All @@ -49,7 +49,7 @@ repos:
- id: docformatter
args: [--in-place, --wrap-summaries, "88", --wrap-descriptions, "88", --blank]
{% if cookiecutter.python_version in ["3.10", "3.11", "3.12"] %}- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.212
rev: v0.0.241
hooks:
- id: ruff
- repo: https://github.com/dosisod/refurb
Expand Down
1 change: 1 addition & 0 deletions {{cookiecutter.package_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ extend-ignore = [
"EM", # flake8-errmsg
"ANN401", # flake8-annotate typing.Any
"PD", # pandas-vet
"COM812", # trailing comma missing, but black takes care of that
]


Expand Down