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

[6.12.z] [pre-commit.ci] pre-commit autoupdate (#14781) #15030

Merged
Merged
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
8 changes: 6 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: tests/foreman/data/
- id: check-yaml
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.1
rev: v0.4.3
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -27,3 +27,7 @@ repos:
verbose: true
types: [text]
require_serial: true
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.2
hooks:
- id: gitleaks
3 changes: 1 addition & 2 deletions robottelo/host_helpers/api_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@ def wait_for_errata_applicability_task(
max_age = now - from_when + 1
search_query = (
'( label = Actions::Katello::Host::GenerateApplicability OR label = '
'Actions::Katello::Host::UploadPackageProfile ) AND started_at > "%s seconds ago"'
% max_age
f'Actions::Katello::Host::UploadPackageProfile ) AND started_at > "{max_age} seconds ago"'
)
tasks = self._satellite.api.ForemanTask().search(query={'search': search_query})
tasks_finished = 0
Expand Down
2 changes: 1 addition & 1 deletion tests/foreman/cli/test_computeresource_libvirt.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def test_positive_list(libvirt_url, module_target_sat):
)
assert comp_res['name']
result_list = module_target_sat.cli.ComputeResource.list(
{'search': 'name=%s' % comp_res['name']}
{'search': 'name={}'.format(comp_res['name'])}
)
assert len(result_list) > 0
result = module_target_sat.cli.ComputeResource.exists(search=('name', comp_res['name']))
Expand Down