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

Uploaded Source

Built Distribution

migration_lint-0.1.4-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.4.tar.gz.

File metadata

  • Download URL: migration_lint-0.1.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.1.4.tar.gz
Algorithm Hash digest
SHA256 9b49ae91e1cce64ff10145f155c1b3439ef5d3a116bf85af80bc94eb79872f3c
MD5 2fc4bdf952785413384a2fc82ac2167f
BLAKE2b-256 3b4bdd1cec39daf8efa6f35f37fed3ec8ec9121cd41465c8b698c79fbbfae9c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for migration_lint-0.1.4-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 700f2cd7338a0997687594fcbe9fdec1b6f9415613a53d329dd9d5743106b6b4
MD5 fa5edfa03d545429368856bff43e111a
BLAKE2b-256 5db6f9db51de100aaafad3537a09b2e7dd130f67a4a8aa9862478a32c58d648e

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