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.2.1.tar.gz (7.2 MB view details)

Uploaded Source

Built Distribution

migration_lint-0.2.1-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.2.1.tar.gz.

File metadata

  • Download URL: migration_lint-0.2.1.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.2.1.tar.gz
Algorithm Hash digest
SHA256 e7c1678a98eb3625408dd6c9a54ab880d7a2aba91b4471f9ac67cbba6db624bc
MD5 f49ca7f6c39028a4ee97ddf10e7a5792
BLAKE2b-256 4242287746540969c153b0d44101023ad56ec05e3f30869c2a4155e9a758320c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for migration_lint-0.2.1-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e770bfea6d78aeda8a0840ec201216ad9896c544478e841e8f45460a38e332d7
MD5 179d47086ffa49fe1861c402da1d254b
BLAKE2b-256 96f6a8c8e2dbc1d8460ba44ecfa0986565db6edd2a014f9676548c859ed07915

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