From c2192673a0650275166caa25327717947fbf69df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Fri, 30 Jul 2021 09:35:52 +0200 Subject: [PATCH] Add user message to helt to fix the checks --- c2cciutils/scripts/checks.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/c2cciutils/scripts/checks.py b/c2cciutils/scripts/checks.py index 2d9c3e334..67de1148f 100644 --- a/c2cciutils/scripts/checks.py +++ b/c2cciutils/scripts/checks.py @@ -34,6 +34,12 @@ def main() -> None: if args.stop: sys.exit(1) print("With error") + if key in ("black", "isort", "prettier", "codespell"): + print("Can be fixed with:") + print("python3 -m pip install --requirement=ci/requirements.txt") + print(f"c2cciutils-checks --fix --check={key}") + if key in ("black", "isort", "prettier"): + print("See also documetation for IDE: https://github.com/camptocamp/c2cciutils#ide") else: print("::endgroup::") if not success: