Skip to content

Commit 84f0959

Browse files
authored
Merge pull request #625 from nose-devs/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 7ff6809 + 30aaf86 commit 84f0959

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+218
-159
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks.git
3-
rev: v4.6.0
3+
rev: v5.0.0
44
hooks:
55
- id: check-merge-conflict
66
- id: check-toml
77
- id: check-yaml
88
- id: end-of-file-fixer
99
- id: trailing-whitespace
1010
- repo: https://github.com/python-jsonschema/check-jsonschema
11-
rev: 0.29.2
11+
rev: 0.30.0
1212
hooks:
1313
- id: check-github-workflows
1414
- id: check-dependabot
1515
- id: check-readthedocs
1616
- repo: https://github.com/psf/black
17-
rev: 24.8.0
17+
rev: 24.10.0
1818
hooks:
1919
- id: black
2020
language_version: python3
@@ -23,7 +23,7 @@ repos:
2323
hooks:
2424
- id: isort
2525
- repo: https://github.com/asottile/pyupgrade
26-
rev: v3.17.0
26+
rev: v3.19.0
2727
hooks:
2828
- id: pyupgrade
2929
args: ["--py37-plus"]
@@ -36,7 +36,7 @@ repos:
3636
- 'flake8-comprehensions==3.14.0'
3737
- 'flake8-typing-as-t==0.0.3'
3838
- repo: https://github.com/sirosen/slyp
39-
rev: 0.7.1
39+
rev: 0.8.1
4040
hooks:
4141
- id: slyp
4242
- repo: https://github.com/codespell-project/codespell
@@ -49,7 +49,7 @@ repos:
4949
- "-L"
5050
- "assertIn"
5151
- repo: https://github.com/tox-dev/pyproject-fmt
52-
rev: 2.2.3
52+
rev: v2.5.0
5353
hooks:
5454
- id: pyproject-fmt
5555
additional_dependencies: ["tox>=4.9"]

nose2/config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
TRUE_VALS = {"1", "t", "true", "on", "yes", "y"}
24
__unittest = True
35

@@ -11,9 +13,9 @@ class Config:
1113
1214
"""
1315

14-
def __init__(self, items):
16+
def __init__(self, items) -> None:
1517
self._items = items
16-
self._mvd = {}
18+
self._mvd: dict[str, list[str]] = {}
1719
for k, v in items:
1820
self._mvd.setdefault(k, []).append(v)
1921

0 commit comments

Comments
 (0)