Skip to content

Commit

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

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.4.0...v4.6.0)
- [github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.3](astral-sh/ruff-pre-commit@v0.4.1...v0.4.3)
- [github.com/gitleaks/gitleaks: v8.18.0 → v8.18.2](gitleaks/gitleaks@v8.18.0...v8.18.2)

* Fix UP031 - Use format specifiers instead of percent format

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ondřej Gajdušek <[email protected]>
Co-authored-by: Gaurav Talreja <[email protected]>
(cherry picked from commit a71fa30)
  • Loading branch information
pre-commit-ci[bot] authored and web-flow committed May 8, 2024
1 parent 748edbd commit fd0f98e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 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 @@ -28,6 +28,6 @@ repos:
types: [text]
require_serial: true
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.0
rev: v8.18.2
hooks:
- id: gitleaks
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 @@ -162,7 +162,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

0 comments on commit fd0f98e

Please sign in to comment.