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.2.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.2-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.2.tar.gz.

File metadata

  • Download URL: migration_lint-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d2048b885a1601fe14221357be183c86b988aa37cba769ec304c015c93649514
MD5 fa6edefcbd17b1bbce4bcebd8c9f2080
BLAKE2b-256 741b12ec131ab7f3a85e9548dc158298ae9e1c104c97b2cd0ead2ab4021a4121

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for migration_lint-0.2.2-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 82e2b3035e763e8a4cce5d48f1814b0745c7caabd775db1022ce03d84fd4df5e
MD5 95a274782d403528d20366131b98e810
BLAKE2b-256 5032e5cfcf3736789d2c06fb48b3307b5ea4765850ce1e35af0b1fc4b24cd1c6

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