Skip to content

Commit

Permalink
pre-commit autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Feb 6, 2024
1 parent 28ffbf6 commit a13a0a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ ci:

repos:
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.2.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ ignore_errors = true

[tool.ruff]
src = ["src", "tests"]

[tool.lintruff]
select = ["ALL"]

ignore = [
Expand All @@ -135,7 +137,7 @@ ignore = [
"TRY301", # Raise in try blocks can totally make sense.
]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"src/hatch_fancy_pypi_readme/_cli.py" = ["T201"] # need print in CLI
"tests/*" = [
"PLC1901", # empty strings are falsey, but are less specific in tests
Expand All @@ -144,6 +146,6 @@ ignore = [
"SIM300", # Yoda rocks in tests
]

[tool.ruff.isort]
[tool.ruff.lint.isort]
lines-between-types = 1
lines-after-imports = 2
6 changes: 2 additions & 4 deletions src/hatch_fancy_pypi_readme/_fragments.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ class Fragment(Protocol):
key: ClassVar[str]

@classmethod
def from_config(cls, cfg: dict[str, str]) -> Fragment:
...
def from_config(cls, cfg: dict[str, str]) -> Fragment: ...

def render(self) -> str:
...
def render(self) -> str: ...


@dataclass
Expand Down

0 comments on commit a13a0a5

Please sign in to comment.