Skip to content

Commit faccab5

Browse files
[pre-commit.ci] pre-commit autoupdate (#62)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.9 → v0.11.4](astral-sh/ruff-pre-commit@v0.9.9...v0.11.4) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6ca0617 commit faccab5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44

55
repos:
66
- repo: https://github.com/astral-sh/ruff-pre-commit
7-
rev: v0.9.9
7+
rev: v0.11.4
88
hooks:
99
- id: ruff
1010
args: [--fix, --exit-non-zero-on-fix]

src/hatch_fancy_pypi_readme/_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def load_and_validate_config(config: dict[str, Any]) -> Config:
5656
raise ConfigurationError(errs)
5757

5858
return Config(
59-
content_type=cast(str, ct),
59+
content_type=cast("str", ct),
6060
fragments=fragments,
6161
substitutions=substitutions,
6262
)

src/hatch_fancy_pypi_readme/_substitutions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def from_config(cls, cfg: dict[str, str]) -> Substituter:
4949
if errs:
5050
raise ConfigurationError(errs)
5151

52-
return cls(pattern, cast(str, replacement))
52+
return cls(pattern, cast("str", replacement))
5353

5454
def substitute(self, text: str) -> str:
5555
return self.pattern.sub(self.replacement, text)

0 commit comments

Comments
 (0)