Auto-format and lint code to standards

code-sanitizerskillsetup L21
BygraveRyan/gcp-flights-analytics
What it does

Automatically format and lint Python/SQL code per project standards

Best for

Ensuring consistent code style across a data pipeline before completion checklist.

Inputs
  • · Python or SQL file paths
Outputs
  • · Formatted files (PEP 8, sqlfluff, UPPERCASE keywords)
Requires
  • · black
  • · isort
  • · sqlfluff
Preconditions
  • · File exists
  • · standards.md defines rules
Failure modes
  • · Script not executable
  • · Tool versions mismatched
Trust signals
  • · Calls black and isort explicitly
  • · BigQuery-specific rules in config