Skip to content

Commit

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

updates:

github.com/astral-sh/ruff-pre-commit: v0.7.0 → v0.8.4
github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.14.0
github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0
github.com/gitleaks/gitleaks: v8.18.4 → v8.22.1
github.com/python-jsonschema/check-jsonschema: 0.29.2 → 0.30.0

Reviewed-by: Laura Barcziová
  • Loading branch information
2 parents 735045c + 09d718d commit 2c46677
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
rev: v0.8.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.14.0
hooks:
- id: mypy
args: [
Expand Down Expand Up @@ -41,7 +41,7 @@ repos:
- id: prettier
exclude: tests_openshift/openshift_integration/test_data/
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand Down Expand Up @@ -69,7 +69,7 @@ repos:
- id: check-rebase
args:
- https://github.com/packit/packit-service.git
stages: [manual, push]
stages: [manual, pre-push]
- repo: https://github.com/packit/requre
rev: 0.8.4
hooks:
Expand All @@ -94,16 +94,16 @@ repos:
language: python
types: [yaml]
files: /tests_openshift.*\.yaml$
stages: [manual, push]
stages: [manual, pre-push]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.4
rev: v8.22.1
hooks:
- id: gitleaks
# The hook runs 'gitleaks protect --staged' which parses output of
# 'git diff --staged', i.e. always passes in pre-push/manual stage.
stages: [commit]
stages: [pre-commit]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.2
rev: 0.30.0
hooks:
- id: check-github-workflows
args: ["--verbose"]
Expand Down
6 changes: 2 additions & 4 deletions packit_service/worker/events/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,8 @@ def build_targets_override(self) -> Optional[set[tuple[str, str]]]:
# see that something has failed and only for those targets the
# tests will be submitted.
if (
not self._build_targets_override
and "rebuild-failed" in self.comment
or "retest-failed" in self.comment
):
not self._build_targets_override and "rebuild-failed" in self.comment
) or "retest-failed" in self.comment:
self._build_targets_override = (
super().get_all_build_targets_by_status(
statuses_to_filter_with=[BuildStatus.failure],
Expand Down
10 changes: 6 additions & 4 deletions packit_service/worker/helpers/sync_release/sync_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ def job(self) -> Optional[JobConfig]:
self._db_project_object.job_config_trigger_type == job.trigger
# pull-from-upstream can be retriggered by a dist-git PR comment,
# in which case the trigger types don't match
or job.type == JobType.pull_from_upstream
and self._db_project_object.job_config_trigger_type
== JobConfigTriggerType.pull_request
and job.trigger == JobConfigTriggerType.release
or (
job.type == JobType.pull_from_upstream
and self._db_project_object.job_config_trigger_type
== JobConfigTriggerType.pull_request
and job.trigger == JobConfigTriggerType.release
)
)
):
self._job = job
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/test_bodhi_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,8 +1148,7 @@ def _create_update(dist_git_branch, update_type, koji_builds, sidetag, alias):
0
if missing_dependency
or non_unique_builds
or existing_update
and " " in existing_update.koji_nvrs
or (existing_update and " " in existing_update.koji_nvrs)
else 1
),
)
Expand Down

0 comments on commit 2c46677

Please sign in to comment.