Skip to content
Snippets Groups Projects
Commit bc561b9b authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Run pre-commit checks

parent ceb946a0
No related branches found
No related tags found
1 merge request!212Ci checks
Pipeline #49130 failed
......@@ -1013,3 +1013,11 @@ def check(root):
"pyproject.toml file not found in the root folder of the package. "
"See https://gitlab.idiap.ch/bob/bob/-/wikis/ci-checks#pyprojecttoml"
)
# if there is a pre-commit file, run the tests
path = os.path.join(root, ".pre-commit-config.yaml")
if os.path.isfile(path):
from ..bootstrap import run_cmdline
run_cmdline(["pip", "install", "pre-commit"])
run_cmdline(["pre-commit", "run", "--all-files"])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment