Open anscfrisson opened 4 months ago
@ansys/solution-maintainers
I would appreciate your insight on the failing check: basic_solution_validation — End-to-end tests with SAF Solution.
style: commands[1]> pre-commit run --all-files --show-diff-on-failure
An error has occurred: InvalidConfigError:
==> File .pre-commit-config.yaml
==> At Config()
==> At key: repos
==> At Repository(repo='https://github.com/PyCQA/autoflake')
==> At key: hooks
==> At Hook(id=MISSING)
=====> Missing required key: id
Check the log at /home/runner/.cache/pre-commit/pre-commit.log
Notes:
ansys-internal/solution-applications-actions/check-code-style@v12
from presumably https://github.com/ansys-internal/solution-applications-actions to get further insight on check-code-style@v12
pre-commit run --all-files --show-diff-on-failure
succeeds on my machine (Windows 11, Python 3.10.11)the supposedly missing id
is present in .pre-commit-config.yaml
:
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args: [
"--expand-star-imports",
"--ignore-pass-statements",
"--in-place",
"--remove-all-unused-imports",
"--remove-unused-variables",
]
This will save us time fixing issues raised by flake.