Skip to main content

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
    description: Domain layer must not depend on application or infrastructure
    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

Metadata

Release files for python-dependency-linter 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-dependency-linter 0.7.2
File Size Uploaded
python_dependency_linter-0.7.2.tar.gz 66.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-dependency-linter 0.7.2
File Interpreter ABI Platform
python_dependency_linter-0.7.2-py3-none-any.whl Python 3 none any Details

Total release size: 79.1 kB

Release files / python_dependency_linter-0.7.2.tar.gz

Download URL python_dependency_linter-0.7.2.tar.gz
Size 66.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8d00ecb5ab26905dceae022ad780d781c7249458b2b6483e31b5686cecfbe4b7
BLAKE2b-256 checksum
How to use checksums
44b9a8841c4748e1148a6c3abef29ad266d0ba77a9bee3e8c9a8bf3a2c0c580e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 27, 2026.

Transparency log

Release files / python_dependency_linter-0.7.2-py3-none-any.whl

Download URL python_dependency_linter-0.7.2-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fd7f225e73df7e097899cb2c65c9838253f6923de8c42c2053d11b36ca5ed6f
BLAKE2b-256 checksum
How to use checksums
8c8c1cf7e65657f6f861e216ea8d1275a227a79002057ba5adab321406d44326
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 27, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.7.2 This release

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page