$npx skillfedfor your agent

squawk-cli

Linter for PostgreSQL migrations

Worth itPyPI Quality AssuranceReleased Aug 2026520.5K downloads / moApache-2.0 OR MITPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — squawk_cli-2.62.0-py3-none-macosx_10_12_x86_64.whl · squawk_cli-2.62.0-py3-none-macosx_11_0_arm64.whl · squawk_cli-2.62.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
v2.62.0 · released 2026-08-06 · Python >=3.8

Yes. Squawk is actively maintained, has no known vulnerabilities, and fills a specific niche—preventing downtime from unsafe Postgres migrations. The permissive dual license and multi-platform binaries lower adoption friction. Install if your team runs Postgres migrations and wants automated guardrails; skip if you do not use Postgres or migrations are rare.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >=3.8.
  • Pre-built binaries available for macOS (Intel/ARM), Linux (x86_64/aarch64), and Windows; source builds require Rust.
  • Medium install friction due to compiled Rust binaries, but pre-built wheels exist for common platforms (macOS x86_64/arm64, Linux x86_64/aarch64, Windows).

License · maintenance · safety

Apache-2.0 OR MIT (permissive) — Dual-licensed under Apache-2.0 OR MIT (permissive). You may choose either license; no restrictions on commercial or private use.

last release 2026-08-06 (8 days) · last repo commit 2026-08-13 · 1,153 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 520,481 downloads/mo, #6,210 on PyPI

Verify before relying

pip install squawk-cli
squawk example.sql
# or check stdin: squawk --stdin-filepath=migration.sql < migration.sql
  • How many built-in rules are available and what is their coverage of common migration anti-patterns.
  • Performance on large SQL files or migration batches.
  • Integration maturity with CI/CD systems beyond GitHub Actions.
Same gist for agents: .md · .json

What it is and what it does

Squawk is a linter that parses PostgreSQL SQL and migration files to identify patterns that commonly cause production issues: unsafe index creation, lock-prone constraint additions, serial-type pitfalls, and schema changes that block reads or writes. It runs as a CLI tool and outputs warnings with inline suggestions and remediation examples.

The tool supports multiple reporting formats (TTY, JSON, GitLab, GCC), rule exclusion via CLI flags or `.squawk.toml` config files, and inline SQL comments to suppress specific checks. It integrates with pre-commit hooks, GitHub Actions, and VSCode, making it suitable for catching migration problems before they reach production.

Use it for

  • Review migration files in CI/CD to catch blocking operations (e.g., UNIQUE constraints, index creation) before deployment.
  • Enforce team standards on column types (e.g., prefer bigint over serial, text over varchar with length limits).
  • Suppress known-safe violations per-file or per-rule via comments or config, reducing noise in large legacy codebases.
  • Local pre-commit hook to validate SQL syntax and schema safety before pushing to version control.
  • Generate structured JSON reports for custom tooling or dashboards that track migration risk over time.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Squawk is actively maintained, has no known vulnerabilities, and fills a specific niche—preventing downtime from unsafe Postgres migrations. The permissive dual license and multi-platform binaries lower adoption friction. Install if your team runs Postgres migrations and wants automated guardrails; skip if you do not use Postgres or migrations are rare.

Install

squawk-cli on PyPI

Before you install

Medium install friction due to compiled Rust binaries, but pre-built wheels exist for common platforms (macOS x86_64/arm64, Linux x86_64/aarch64, Windows). Last release 8 days ago; active maintenance with 1153 GitHub stars.

Requires Python >=3.8. Pre-built binaries available for macOS (Intel/ARM), Linux (x86_64/aarch64), and Windows; source builds require Rust.

License in practice

Dual-licensed under Apache-2.0 OR MIT (permissive). You may choose either license; no restrictions on commercial or private use.

Quickstart

pip install squawk-cli
squawk example.sql
# or check stdin: squawk --stdin-filepath=migration.sql < migration.sql

Verify before relying

  • How many built-in rules are available and what is their coverage of common migration anti-patterns.
  • Performance on large SQL files or migration batches.
  • Integration maturity with CI/CD systems beyond GitHub Actions.

Package facts

LicenseApache-2.0 OR MIT permissive
Python supportSupports the current Python release >=3.8
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceActively maintained 8 days since the last release
Last repo commit
First released
Downloads520,481 / month, #6,210 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Apache Software LicenseLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: Rust

Evidence: squawk_cli-2.62.0-py3-none-macosx_10_12_x86_64.whl; squawk_cli-2.62.0-py3-none-macosx_11_0_arm64.whl; squawk_cli-2.62.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; squawk_cli-2.62.0-py3-none-manylinux_2_28_x86_64.whl; squawk_cli-2.62.0-py3-none-win32.whl; squawk_cli-2.62.0-py3-none-win_amd64.whl

Tags

Capabilities
postgres migration lintersql linting toolpostgresql schema checkerdatabase migration validatorsql best practices checkerpostgres downtime preventionmigration safety analyzer
Topics
postgres-migrationssql-lintingschema-safety
PyPI keywords
postgrespostgresqllinter

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “postgres migration linter”

  • squawk-cliLinter that analyzes PostgreSQL migrations and SQL statements to…
  • django-pgmigratePrevents migration downtime by detecting and terminating blocking…
  • django-pg-migration-toolsProvides safer, production-ready Django migration operations for…

Give your agent the search over MCP, or paste the wish link into any chat.

More Quality Assurance packages

coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
ruff Worth it
PyPI · Python Modules · released Aug 2026

Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.

MITcompiled wheel · 3.7+
316.1Mdownloads / mo
pexpect With conditions
PyPI · Software Development · released Nov 2023

Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.

ISCpure Pythonaging
200.8Mdownloads / mo
black Worth it
PyPI · Python Modules · released May 2026

Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.

MITpure Python · 3.10+
179.9Mdownloads / mo
pytest-xdist Worth it
PyPI · Utilities · released Jul 2025

pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.

Install it if your test suite takes long enough that parallelization would save meaningful time.

MITpure Python · 3.9+
177.1Mdownloads / mo
cfn-lint Worth it
PyPI · Quality Assurance · released Aug 2026

Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.

Install it if you work with CloudFormation templates.

MIT-0pure Python
114.9Mdownloads / mo

See also django-pg-zero-downtime-migrations · migra · pgsanity · django-pg-migration-tools · django-migration-linter · django-pgmigrate · collate-sqlfluff · sqlfluff · sqlfluffrs · pglast