Skip to content

Commit

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

updates:

github.com/asottile/pyupgrade: v3.15.0 → v3.19.0
github.com/psf/black: 24.2.0 → 24.10.0
github.com/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0
github.com/PyCQA/flake8: 7.0.0 → 7.1.1
github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.13.0
github.com/teemtee/tmt.git: 1.31.0 → 1.38.0
github.com/python-jsonschema/check-jsonschema: 0.28.0 → 0.29.4

Reviewed-by: Matej Focko
Reviewed-by: Laura Barcziová
  • Loading branch information
softwarefactory-project-zuul[bot] authored Oct 30, 2024
2 parents c38cfaa + 1a0010d commit b68f01b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.19.0
hooks:
- id: pyupgrade
- repo: https://github.com/psf/black
rev: 24.2.0
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -32,7 +32,7 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
rev: 7.1.1
hooks:
- id: flake8
args:
Expand All @@ -45,27 +45,27 @@ repos:
- id: isort
args: [--profile, black]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.13.0
hooks:
- id: mypy
args: [--show-error-codes, --ignore-missing-imports]
additional_dependencies:
[types-setuptools, types-requests, types-python-dateutil]
- repo: https://github.com/teemtee/tmt.git
rev: 1.31.0
rev: 1.38.0
hooks:
- id: tmt-lint
# linting of the reverse-dependency tests requires internet access
stages: [manual, push]
stages: [manual, pre-push]
- repo: https://github.com/packit/pre-commit-hooks
rev: v1.2.0
hooks:
- id: check-rebase
args:
- https://github.com/packit/specfile.git
stages: [manual, push]
stages: [manual, pre-push]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.0
rev: 0.29.4
hooks:
- id: check-github-workflows
args: ["--verbose"]
Expand Down
1 change: 1 addition & 0 deletions specfile/context_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def capture_stderr() -> Generator[List[bytes], None, None]:
Yields:
List of captured lines.
"""
assert sys.__stderr__, "stderr should exist"
fileno = sys.__stderr__.fileno()
with tempfile.TemporaryFile() as stderr, os.fdopen(os.dup(fileno)) as backup:
sys.stderr.flush()
Expand Down

0 comments on commit b68f01b

Please sign in to comment.