Skip to content

Commit 45eb1b2

Browse files
Merge pull request #1021 from RonnyPfannschmidt/pre-commit-upgrade
pre commit upgrade
2 parents 59defe7 + 82857a4 commit 45eb1b2

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: check-yaml
77
- id: debug-statements
88
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
rev: v0.2.1
9+
rev: v0.3.0
1010
hooks:
1111
- id: ruff
1212
args: [--fix, --exit-non-zero-on-fix]

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ version = { attr = "_own_version_helper.version"}
114114
[tool.setuptools_scm]
115115

116116
[tool.ruff]
117-
required-version = "0.2.1"
118117
fix = true
119118
lint.select = ["E", "F", "B", "U", "YTT", "C", "DTZ", "PYI", "PT", "I", "FURB", "RUF"]
120119
lint.ignore = ["B028"]

src/setuptools_scm/_config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" configuration """
1+
"""configuration"""
22

33
from __future__ import annotations
44

@@ -54,8 +54,7 @@ def _check_tag_regex(value: str | Pattern[str] | None) -> Pattern[str]:
5454
class ParseFunction(Protocol):
5555
def __call__(
5656
self, root: _t.PathT, *, config: Configuration
57-
) -> _t.SCMVERSION | None:
58-
...
57+
) -> _t.SCMVERSION | None: ...
5958

6059

6160
def _check_absolute_root(root: _t.PathT, relative_to: _t.PathT | None) -> str:

src/setuptools_scm/_entrypoints.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ def _call_version_scheme(
114114
entrypoint: str,
115115
given_value: _t.VERSION_SCHEMES,
116116
default: str,
117-
) -> str:
118-
...
117+
) -> str: ...
119118

120119

121120
@overload
@@ -124,8 +123,7 @@ def _call_version_scheme(
124123
entrypoint: str,
125124
given_value: _t.VERSION_SCHEMES,
126125
default: None,
127-
) -> str | None:
128-
...
126+
) -> str | None: ...
129127

130128

131129
def _call_version_scheme(

src/setuptools_scm/_run_cmd.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,15 @@ def parse_success(
5757
parse: Callable[[str], PARSE_RESULT],
5858
default: None = None,
5959
error_msg: str | None = None,
60-
) -> PARSE_RESULT | None:
61-
...
60+
) -> PARSE_RESULT | None: ...
6261

6362
@overload
6463
def parse_success(
6564
self,
6665
parse: Callable[[str], PARSE_RESULT],
6766
default: T,
6867
error_msg: str | None = None,
69-
) -> PARSE_RESULT | T:
70-
...
68+
) -> PARSE_RESULT | T: ...
7169

7270
def parse_success(
7371
self,

0 commit comments

Comments
 (0)