Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #2458

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.1
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.13.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.21.2
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
Loading