Skip to main content

Tool for lint operations in DB migrations SQL

Project description

Migration Lint

ci status Coverage Py Version

migration-lint is the modular linter tool designed to perform checks on database schema migrations and prevent unsafe operations.

Features:

  • Works with Django migrations, Alembic and raw sql files.
  • Easily extensible for other frameworks.
  • Can identify Backward Incompatible operations and check if they are allowed in the current context.
  • Can identify "unsafe" operations, e.g. operations that acquire locks that can be dangerous for production database.

Installation

poetry add "migration-lint"
pip install "migration-lint"

Documentation

Read the docs on GitHub Pages

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

migration_lint-0.1.3.tar.gz (7.2 MB view details)

Uploaded Source

Built Distribution

migration_lint-0.1.3-cp39-cp39-macosx_14_0_arm64.whl (7.3 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

File details

Details for the file migration_lint-0.1.3.tar.gz.

File metadata

  • Download URL: migration_lint-0.1.3.tar.gz
  • Upload date:
  • Size: 7.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.20 Darwin/23.6.0

File hashes

Hashes for migration_lint-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c2eaac7feea1944d489fa0ff53afa27240dcdb69de6d3944d978ba75497ded74
MD5 47a8c1660ff421a987e889001cd50e44
BLAKE2b-256 80b7f6703d41464b0fa836c2b24bd4c138e2e8ae1dbb2b0450fb4f776d728cf8

See more details on using hashes here.

File details

Details for the file migration_lint-0.1.3-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for migration_lint-0.1.3-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 73171e70a3b56d739b1ee7ac9b063142c00a9bdd7370af4385abdbf5f22c085a
MD5 03ed6f14bdd94f44a737b31390617638
BLAKE2b-256 ef529a9ecdc85d65606c566d9a78c781ba587ce2275a39ec4605ede9c2db0325

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page