Skip to main content

Depcheck: Dependency Checker

Depcheck is a command line code-quality tool which supports adopting a layered architecture by making it possible to specify dependency constraints between packages of your own Python application. The tool aims to achieve the same goals as Deptrac in PHP and JDepend in Java

Install

  • Via poetry (recommended): Install with poetry add depcheck
  • Via pip: Install from Pypi via pip install depcheck

Usage

To run via CLI you run:

depcheck <root_dir> -f <config_file>

# Or, with poetry
poetry run depcheck <root_dir> -f <config_file>

The example directory demonstrates how the tool works.

cd example

poetry run depcheck example -f .depcheck.ok.yml  # This should be correct
poetry run depcheck example -f .depcheck.errors.yml  # This should give errors

To understand how to configure the tool, look inside the YML files. The -f argument is optional. Implicitly, the tool will look for .depcheck.yml.

NOTE: Package directories should contain __init__.py to be recognized as a package!

Contributing

All contributions are welcomed! See our CONTRIBUTING.md document.

Metadata

Release files for depcheck 0.3.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 depcheck 0.3.2
File Size Uploaded
depcheck-0.3.2.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for depcheck 0.3.2
File Interpreter ABI Platform
depcheck-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / depcheck-0.3.2.tar.gz

Download URL depcheck-0.3.2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
93987b5ff93f026edd4c43544ecf1256abce78230f308b5fd6bb6e9dcb89c5ab
BLAKE2b-256 checksum
How to use checksums
7865f69b2de2fb1a90630766e2aa0305e58794ea751fbae145b3457bbe2d895d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.9.16 Linux/5.4.219-126.411.amzn2.x86_64

Release files / depcheck-0.3.2-py3-none-any.whl

Download URL depcheck-0.3.2-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f30fe379ae3a91bd2cc2a1b4b1bacbbc2c58aad2c38dfd6a474a44a1db3bf224
BLAKE2b-256 checksum
How to use checksums
2d8a5719d375d9ea160ca795ade838629bec1fd0ca55f701f5edd9c5f609dc08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.9.16 Linux/5.4.219-126.411.amzn2.x86_64

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3

2 release files

0.2.0

2 release files

0.1.1

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