Skip to content

Commit f300ebf

Browse files
chore(deps): bump the pre-commit group with 5 updates (#1357)
* chore(deps): bump the pre-commit group with 5 updates Bumps the pre-commit group with 5 updates: | Package | From | To | | --- | --- | --- | | [https://github.com/astral-sh/ruff-pre-commit](https://github.com/astral-sh/ruff-pre-commit) | `v0.15.19` | `0.16.0` | | [https://github.com/pre-commit/mirrors-mypy](https://github.com/pre-commit/mirrors-mypy) | `v2.1.0` | `2.3.0` | | typing-extensions | `4.15.0` | `4.16.0` | | [https://github.com/crate-ci/typos](https://github.com/crate-ci/typos) | `v1.47.2` | `1.48.0` | | [https://github.com/zizmorcore/zizmor-pre-commit](https://github.com/zizmorcore/zizmor-pre-commit) | `v1.26.1` | `1.28.0` | Updates `https://github.com/astral-sh/ruff-pre-commit` from v0.15.19 to 0.16.0 - [Release notes](https://github.com/astral-sh/ruff-pre-commit/releases) - [Commits](astral-sh/ruff-pre-commit@745be04...cb8c523) Updates `https://github.com/pre-commit/mirrors-mypy` from v2.1.0 to 2.3.0 - [Commits](pre-commit/mirrors-mypy@d2823d3...41e6916) Updates `typing-extensions` from 4.15.0 to 4.16.0 Updates `https://github.com/crate-ci/typos` from v1.47.2 to 1.48.0 - [Release notes](https://github.com/crate-ci/typos/releases) - [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md) - [Commits](crate-ci/typos@37bb988...bee27e3) Updates `https://github.com/zizmorcore/zizmor-pre-commit` from v1.26.1 to 1.28.0 - [Release notes](https://github.com/zizmorcore/zizmor-pre-commit/releases) - [Commits](zizmorcore/zizmor-pre-commit@e3eebf6...067260d) --- updated-dependencies: - dependency-name: https://github.com/astral-sh/ruff-pre-commit dependency-version: 0.16.0 dependency-type: direct:production dependency-group: pre-commit - dependency-name: https://github.com/pre-commit/mirrors-mypy dependency-version: 2.3.0 dependency-type: direct:production dependency-group: pre-commit - dependency-name: typing-extensions dependency-version: 4.16.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pre-commit - dependency-name: https://github.com/crate-ci/typos dependency-version: 1.48.0 dependency-type: direct:production dependency-group: pre-commit - dependency-name: https://github.com/zizmorcore/zizmor-pre-commit dependency-version: 1.28.0 dependency-type: direct:production dependency-group: pre-commit ... Signed-off-by: dependabot[bot] <support@github.com> * style: address ruff updates Signed-off-by: Henry Schreiner <henryfs@princeton.edu> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Henry Schreiner <henryfs@princeton.edu> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <henryfs@princeton.edu>
1 parent f91d975 commit f300ebf

5 files changed

Lines changed: 10 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: trailing-whitespace
1010

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

2525
- repo: https://github.com/pre-commit/mirrors-mypy
26-
rev: d2823d321df3af8f878f7ee3414dc94d037145b9 # frozen: v2.1.0
26+
rev: 41e691678310dfd3833f7ab4e180ddb014310356 # frozen: v2.3.0
2727
hooks:
2828
- id: mypy
2929
exclude: '^(docs)'
@@ -34,17 +34,17 @@ repos:
3434
- 'pytest<9'
3535
- tomli
3636
- tomli_w
37-
- 'typing_extensions>=4.15.0'
37+
- 'typing_extensions>=4.16.0'
3838
- httpx
3939

4040
- repo: https://github.com/crate-ci/typos
41-
rev: 37bb98842b0d8c4ffebdb75301a13db0267cef89 # frozen: v1.47.2
41+
rev: bee27e3a4fd1ea2111cf90ab89cd076c870fce14 # frozen: v1.48.0
4242
hooks:
4343
- id: typos
4444
args: []
4545

4646
- repo: https://github.com/zizmorcore/zizmor-pre-commit
47-
rev: e3eebf65325ccc992422292cb7a4baee967cf815 # frozen: v1.26.1
47+
rev: 067260dc5fe6ea86b7551bfd6f8b3ba4e6c93129 # frozen: v1.28.0
4848
hooks:
4949
- id: zizmor
5050
files: "^\\.github"

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,13 @@ ignore = [
130130
"A002", # function args shadowing builtins is fine
131131
"C9", # complexity
132132
"COM812", # trailing commas teach the formatter
133+
"CPY001", # no copyright messages in files (for now)
133134
"D", # doc formatting
134135
"EM", # flake8-errmsg
135136
"ERA", # commented out code
136137
"FBT", # boolean positional args (existing API)
137138
"FIX", # has todos
139+
"ISC004", # unparenthesized implicit string concatenation in collection
138140
"N818", # exceptions must end in "*Error"
139141
"PLR09", # too many ...
140142
"PLR2004", # magic value in comparison

tests/test_markers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

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

7070
@pytest.mark.parametrize("value", ["one", "two"])

tests/test_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ def test_empty_import_names(self) -> None:
14781478
),
14791479
],
14801480
)
1481-
def test_headers(self, items: list[tuple[str, None | str]], data: str) -> None:
1481+
def test_headers(self, items: list[tuple[str, str | None]], data: str) -> None:
14821482
message = metadata.RFC822Message()
14831483

14841484
for name, value in items:

tests/test_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def test_version_local(self, version: str, local: str | None) -> None:
650650
("1!1.0.post5+deadbeef", None),
651651
],
652652
)
653-
def test_version_pre(self, version: str, pre: None | tuple[str, int]) -> None:
653+
def test_version_pre(self, version: str, pre: tuple[str, int] | None) -> None:
654654
assert Version(version).pre == pre
655655

656656
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)