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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

migration_lint-0.2.6-cp39-cp39-macosx_15_0_arm64.whl (7.3 MB view details)

Uploaded CPython 3.9macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: migration_lint-0.2.6.tar.gz
  • Upload date:
  • Size: 7.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.11 Darwin/24.2.0

File hashes

Hashes for migration_lint-0.2.6.tar.gz
Algorithm Hash digest
SHA256 3f90c5342914bd32f29e809793445093b43fda8630212197c7757887a7c1f58a
MD5 df67ab2d83b252e84fec231eb0886c47
BLAKE2b-256 606fac93926ff1d7947212d6234056412d8c8fa6354e705fd883fcbb6b400c0c

See more details on using hashes here.

File details

Details for the file migration_lint-0.2.6-cp39-cp39-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for migration_lint-0.2.6-cp39-cp39-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 110383a3bbb31cd1c8da52a02f8b3bebf3274ee0633e0e6f457106b4013cb5e1
MD5 e0b0b1458925c4596c02a8f4c897f92e
BLAKE2b-256 16b17687eb7d09a58b025488d9c9a01bc444908cadd7ad1b402dfb3fbf884522

See more details on using hashes here.

Supported by

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