Skip to main content

A dependency linter for Python projects

Project description

python-dependency-linter

A dependency linter for Python projects. Define rules for which modules can depend on what, and catch violations.

Installation

pip install python-dependency-linter

Or with uv:

uv add python-dependency-linter

Quick Start

Create .python-dependency-linter.yaml in your project root:

rules:
  - name: domain-isolation
    modules: contexts.*.domain
    allow:
      standard_library: [dataclasses, typing]
      third_party: [pydantic]
      local: [contexts.*.domain]

Run:

pdl check

Documentation

For full documentation, visit heumsi.github.io/python-dependency-linter.

License

MIT

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

python_dependency_linter-0.7.0.tar.gz (64.1 kB view details)

Uploaded Source

Built Distribution

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

python_dependency_linter-0.7.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file python_dependency_linter-0.7.0.tar.gz.

File metadata

  • Download URL: python_dependency_linter-0.7.0.tar.gz
  • Upload date:
  • Size: 64.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for python_dependency_linter-0.7.0.tar.gz
Algorithm Hash digest
SHA256 14ebe5d1533315fdc37662c19724a4e3bf4f8ac99506abf4e17cc7bdfef6117b
MD5 848e2a2eee189371a179681625d8fe68
BLAKE2b-256 7ddc9ca9759fd3d9d05d7c023f4dd5c9cce78f613b73cc92a600c483b713cb42

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_dependency_linter-0.7.0.tar.gz:

Publisher: publish.yaml on heumsi/python-dependency-linter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file python_dependency_linter-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_dependency_linter-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3035070f944644441f879f56461bf06254d790a2f1c45d9a32ad6b8fc9fc7710
MD5 71f7b8c70d11fea1acf74b74336a904f
BLAKE2b-256 19302f2a0b4d38c3bc6cd166c9631df335600dcad70c86b5b289beb96b30d015

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_dependency_linter-0.7.0-py3-none-any.whl:

Publisher: publish.yaml on heumsi/python-dependency-linter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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