Skip to content

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

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 2 commits into from
Mar 12, 2024
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ repos:
hooks:
- id: sort-all
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.2
hooks:
- id: ruff
args: [--config, pyproject.toml, hooks, tests]
pass_filenames: false
- id: ruff-format
args: [--config, pyproject.toml]
- repo: https://github.com/dosisod/refurb
rev: v1.28.0
rev: v2.0.0
hooks:
- id: refurb
exclude: ({{cookiecutter.project_slug}})
Expand Down Expand Up @@ -81,7 +81,7 @@ repos:
- id: codespell
additional_dependencies: [tomli]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.8.0'
rev: 'v1.9.0'
hooks:
- id: mypy
pass_filenames: false
Expand Down
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
documentation: https://www.sphinx-doc.org/en/master/usage/configuration.html

"""

from importlib.metadata import version


Expand Down
1 change: 1 addition & 0 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Contains hooks which are executed after the template is rendered."""

from __future__ import annotations

import shutil
Expand Down
1 change: 1 addition & 0 deletions hooks/pre_gen_project.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Contains hooks which are executed before the template is rendered."""

import re

MODULE_REGEX = r"^[_a-zA-Z][_a-zA-Z0-9]*$"
Expand Down
1 change: 1 addition & 0 deletions {{cookiecutter.project_slug}}/docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
documentation: https://www.sphinx-doc.org/en/master/usage/configuration.html

"""

from importlib.metadata import version


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Contains the main namespace of {{ cookiecutter.project_slug }}."""

# Import the version from _version.py which is dynamically created by setuptools-scm
# when the project is installed with ``pip install -e .``. Do not put it into version
# control!
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Contains the general configuration of the project."""

from pathlib import Path


Expand Down