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.4.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.4-cp39-cp39-macosx_14_0_arm64.whl (7.3 MB view details)

Uploaded CPython 3.9macOS 14.0+ ARM64

File details

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

File metadata

  • Download URL: migration_lint-0.2.4.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.4.tar.gz
Algorithm Hash digest
SHA256 1ddc966c8ab382b7c09b1d623c2fabf238bef0970fde651341ede1d552a28c34
MD5 3f55d9fa26bf4708e9caf04bddf27067
BLAKE2b-256 ace55fa8c0303c33b11d68f9393e63d3cf8de06d84dce6617359ff1e09a6df5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for migration_lint-0.2.4-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b45461aa73064f484e06c7f9ebd5ab79b16fba4d569e9d4ed686ce96ccb13e11
MD5 948bd365cf229a61b10a04d3e7a67178
BLAKE2b-256 3a0b8c697d167c0e4be54af84c8ac0a16888967d21b5b786318e0c2ccf38ce61

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