Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#26)
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.7.1](astral-sh/ruff-pre-commit@v0.7.0...v0.7.1)
- [github.com/gitleaks/gitleaks: v8.21.1 → v8.21.2](gitleaks/gitleaks@v8.21.1...v8.21.2)
- [github.com/pre-commit/mirrors-mypy: v1.12.1 → v1.13.0](pre-commit/mirrors-mypy@v1.12.1...v1.13.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Oct 29, 2024
1 parent 561f8eb commit b269dad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ repos:
- id: detect-secrets

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
rev: v0.7.1
hooks:
- id: ruff
- id: ruff-format

- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.1
rev: v8.21.2
hooks:
- id: gitleaks

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.12.1
rev: v1.13.0
hooks:
- id: mypy
exclude: (tests/)
Expand Down
4 changes: 2 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def main(
must_gather_path = path

CONSOLE.print(
"\n[bold cyan]Welcome to the must-gather-explorer\n" "Please wait while the must gather data is being parsed\n"
"\n[bold cyan]Welcome to the must-gather-explorer\nPlease wait while the must gather data is being parsed\n"
)

# Fill dictionaries for all files kinds
Expand Down Expand Up @@ -63,7 +63,7 @@ def main(
with open(yaml_file_path) as fd:
resource_dictionary = yaml.safe_load(fd)
resource_dict_metadata = resource_dictionary["metadata"]
all_resources.setdefault(f'{resource_dictionary["kind"]}'.lower(), []).append({
all_resources.setdefault(f"{resource_dictionary['kind']}".lower(), []).append({
"name": resource_dict_metadata.get("name", ""),
"namespace": resource_dict_metadata.get("namespace", ""),
"yaml_file": yaml_file_path,
Expand Down

0 comments on commit b269dad

Please sign in to comment.