Skip to content
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

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

Closed
wants to merge 2 commits into from
Closed
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 @@ -2,7 +2,7 @@ default_language_version:
python: python3.9
repos:
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.2.0
hooks:
- id: black
args: [--safe, --quiet]
Expand All @@ -28,12 +28,12 @@ repos:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.11
rev: v0.2.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.5.3"
rev: "1.7.0"
hooks:
- id: pyproject-fmt
exclude: docs/examples/
Expand Down
3 changes: 1 addition & 2 deletions src/setuptools_scm/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ def _check_tag_regex(value: str | Pattern[str] | None) -> Pattern[str]:
class ParseFunction(Protocol):
def __call__(
self, root: _t.PathT, *, config: Configuration
) -> _t.SCMVERSION | None:
...
) -> _t.SCMVERSION | None: ...


def _check_absolute_root(root: _t.PathT, relative_to: _t.PathT | None) -> str:
Expand Down
6 changes: 2 additions & 4 deletions src/setuptools_scm/_entrypoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ def _call_version_scheme(
entrypoint: str,
given_value: _t.VERSION_SCHEMES,
default: str,
) -> str:
...
) -> str: ...


@overload
Expand All @@ -122,8 +121,7 @@ def _call_version_scheme(
entrypoint: str,
given_value: _t.VERSION_SCHEMES,
default: None,
) -> str | None:
...
) -> str | None: ...


def _call_version_scheme(
Expand Down
6 changes: 2 additions & 4 deletions src/setuptools_scm/_run_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,15 @@ def parse_success(
parse: Callable[[str], PARSE_RESULT],
default: None = None,
error_msg: str | None = None,
) -> PARSE_RESULT | None:
...
) -> PARSE_RESULT | None: ...

@overload
def parse_success(
self,
parse: Callable[[str], PARSE_RESULT],
default: T,
error_msg: str | None = None,
) -> PARSE_RESULT | T:
...
) -> PARSE_RESULT | T: ...

def parse_success(
self,
Expand Down
Loading