Skip to content

Commit

Permalink
Add user message to help to fix the checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 30, 2021
1 parent 36fb7fd commit b6303f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions c2cciutils/scripts/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 documentation for IDE: https://github.com/camptocamp/c2cciutils#ide")
else:
print("::endgroup::")
if not success:
Expand Down

0 comments on commit b6303f1

Please sign in to comment.