Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#302)
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate

updates:

github.com/psf/black: 23.10.1 → 23.11.0
github.com/pre-commit/mirrors-prettier: v3.0.3 → v3.1.0
github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.1
github.com/teemtee/tmt.git: 1.28.2 → 1.29.0

Reviewed-by: Nikola Forró
  • Loading branch information
2 parents 152f67c + ec7068a commit ba3b130
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ repos:
hooks:
- id: pyupgrade
- repo: https://github.com/psf/black
rev: 23.10.1
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
rev: v3.1.0
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down Expand Up @@ -44,14 +44,14 @@ repos:
- id: isort
args: [--profile, black]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
rev: v1.7.1
hooks:
- id: mypy
args: [--show-error-codes, --ignore-missing-imports]
additional_dependencies:
[types-pkg_resources, types-requests, types-python-dateutil]
- repo: https://github.com/teemtee/tmt.git
rev: 1.28.2
rev: 1.29.0
hooks:
- id: tmt-lint
# linting of the reverse-dependency tests requires internet access
Expand Down
8 changes: 6 additions & 2 deletions specfile/specfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ def sources(
try:
yield Sources(
tags,
list(zip(*sourcelists))[1] if sourcelists else [],
cast(List[Sourcelist], list(zip(*sourcelists))[1])
if sourcelists
else [],
allow_duplicates,
default_to_implicit_numbering,
default_source_number_digits,
Expand Down Expand Up @@ -391,7 +393,9 @@ def patches(
try:
yield Patches(
tags,
list(zip(*patchlists))[1] if patchlists else [],
cast(List[Sourcelist], list(zip(*patchlists))[1])
if patchlists
else [],
allow_duplicates,
default_to_implicit_numbering,
default_source_number_digits,
Expand Down

0 comments on commit ba3b130

Please sign in to comment.