Skip to content

Commit

Permalink
Merge pull request #625 from nose-devs/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
sirosen authored Dec 16, 2024
2 parents 7ff6809 + 30aaf86 commit 84f0959
Show file tree
Hide file tree
Showing 43 changed files with 218 additions and 159 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.2
rev: 0.30.0
hooks:
- id: check-github-workflows
- id: check-dependabot
- id: check-readthedocs
- repo: https://github.com/psf/black
rev: 24.8.0
rev: 24.10.0
hooks:
- id: black
language_version: python3
Expand All @@ -23,7 +23,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
rev: v3.19.0
hooks:
- id: pyupgrade
args: ["--py37-plus"]
Expand All @@ -36,7 +36,7 @@ repos:
- 'flake8-comprehensions==3.14.0'
- 'flake8-typing-as-t==0.0.3'
- repo: https://github.com/sirosen/slyp
rev: 0.7.1
rev: 0.8.1
hooks:
- id: slyp
- repo: https://github.com/codespell-project/codespell
Expand All @@ -49,7 +49,7 @@ repos:
- "-L"
- "assertIn"
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 2.2.3
rev: v2.5.0
hooks:
- id: pyproject-fmt
additional_dependencies: ["tox>=4.9"]
6 changes: 4 additions & 2 deletions nose2/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

TRUE_VALS = {"1", "t", "true", "on", "yes", "y"}
__unittest = True

Expand All @@ -11,9 +13,9 @@ class Config:
"""

def __init__(self, items):
def __init__(self, items) -> None:
self._items = items
self._mvd = {}
self._mvd: dict[str, list[str]] = {}
for k, v in items:
self._mvd.setdefault(k, []).append(v)

Expand Down
Loading

0 comments on commit 84f0959

Please sign in to comment.