Python code quality package that helps in defining and restricting how components of your code may interact
Project description
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 withpoetry add depcheck
- Via
pip
: Install from Pypi viapip 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.
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
Built Distribution
File details
Details for the file depcheck-0.3.2.tar.gz
.
File metadata
- Download URL: depcheck-0.3.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.16 Linux/5.4.219-126.411.amzn2.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93987b5ff93f026edd4c43544ecf1256abce78230f308b5fd6bb6e9dcb89c5ab |
|
MD5 | 790a998dd6c0c662dec1c2fa915150ba |
|
BLAKE2b-256 | 7865f69b2de2fb1a90630766e2aa0305e58794ea751fbae145b3457bbe2d895d |
File details
Details for the file depcheck-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: depcheck-0.3.2-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.16 Linux/5.4.219-126.411.amzn2.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f30fe379ae3a91bd2cc2a1b4b1bacbbc2c58aad2c38dfd6a474a44a1db3bf224 |
|
MD5 | a3aa72794733c6f2424758069790f87c |
|
BLAKE2b-256 | 2d8a5719d375d9ea160ca795ade838629bec1fd0ca55f701f5edd9c5f609dc08 |