Skip to content
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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 745be0411e3c150e246d527e531e5a221b8c3462 # frozen: v0.15.19
rev: cb8c523fd4835aba42af70f4cad5568db4df0b6c # frozen: v0.16.0
hooks:
- id: ruff-check
args: [ --fix ]
Expand All @@ -23,7 +23,7 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/pre-commit/mirrors-mypy
rev: d2823d321df3af8f878f7ee3414dc94d037145b9 # frozen: v2.1.0
rev: 41e691678310dfd3833f7ab4e180ddb014310356 # frozen: v2.3.0
hooks:
- id: mypy
exclude: '^(docs)'
Expand All @@ -34,17 +34,17 @@ repos:
- 'pytest<9'
- tomli
- tomli_w
- 'typing_extensions>=4.15.0'
- 'typing_extensions>=4.16.0'
- httpx

- repo: https://github.com/crate-ci/typos
rev: 37bb98842b0d8c4ffebdb75301a13db0267cef89 # frozen: v1.47.2
rev: bee27e3a4fd1ea2111cf90ab89cd076c870fce14 # frozen: v1.48.0
hooks:
- id: typos
args: []

- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: e3eebf65325ccc992422292cb7a4baee967cf815 # frozen: v1.26.1
rev: 067260dc5fe6ea86b7551bfd6f8b3ba4e6c93129 # frozen: v1.28.0
hooks:
- id: zizmor
files: "^\\.github"
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,13 @@ ignore = [
"A002", # function args shadowing builtins is fine
"C9", # complexity
"COM812", # trailing commas teach the formatter
"CPY001", # no copyright messages in files (for now)
"D", # doc formatting
"EM", # flake8-errmsg
"ERA", # commented out code
"FBT", # boolean positional args (existing API)
"FIX", # has todos
"ISC004", # unparenthesized implicit string concatenation in collection
"N818", # exceptions must end in "*Error"
"PLR09", # too many ...
"PLR2004", # magic value in comparison
Expand Down
2 changes: 1 addition & 1 deletion tests/test_markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

class TestNode:
@pytest.mark.parametrize("value", ["one", "two", None, 3, 5, []])
def test_accepts_value(self, value: str | None | int | list[str]) -> None:
def test_accepts_value(self, value: str | int | list[str] | None) -> None:
assert Node(value).value == value # type: ignore[arg-type]

@pytest.mark.parametrize("value", ["one", "two"])
Expand Down
2 changes: 1 addition & 1 deletion tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,7 @@ def test_empty_import_names(self) -> None:
),
],
)
def test_headers(self, items: list[tuple[str, None | str]], data: str) -> None:
def test_headers(self, items: list[tuple[str, str | None]], data: str) -> None:
message = metadata.RFC822Message()

for name, value in items:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def test_version_local(self, version: str, local: str | None) -> None:
("1!1.0.post5+deadbeef", None),
],
)
def test_version_pre(self, version: str, pre: None | tuple[str, int]) -> None:
def test_version_pre(self, version: str, pre: tuple[str, int] | None) -> None:
assert Version(version).pre == pre

@pytest.mark.parametrize(
Expand Down
Loading