Check Style

Run the project's lint + formatter before declaring done; fix what's auto-fixable.

jcaiagent7143-ui Updated

File contents

Check style

Steps

  1. Run the project's linter{{ profile.lint_command if profile and profile.lint_command else "ruff check . / flake8 / mypy — whatever the project declared" }}.
  2. If the linter has an auto-fix flag (ruff check --fix, black .), run it.
  3. Re-run to confirm clean.
  4. Run the formatter if separate (ruff format ., black .).
  5. If there are remaining warnings you can't auto-fix, surface them in the summary — don't silently # noqa them.

Failure modes to avoid

  • Adding # noqa to suppress a real bug.
  • Running a different formatter (black) when the project uses ruff format.
  • Auto-formatting files outside your diff (touches unrelated lines, bloats the PR).
  • Skipping lint with "it's just a small change."

jcaiagent7143-ui/harnessforge/tree/main/src/harness/blueprints/python-cli-app/skills/check-style commit acfc5b7c58

Frequently asked questions

npx skillmds@latest add jcaiagent7143-ui/check-style