Depcheck is a tool to check package dependencies between predefined layers to make sure that the application always complies with the architecture you defined. It helps you enforcing some constraints and creating a decoupled applications.
Project description
Depcheck is a tool to check package-dependencies between predefined layers.
In the configuration file(.depcheck.yml
) located in the project root,
which packages belong to which layers and allowed dependencies between
layers are configurable. In this way, you can enforce constraints and make sure to have decoupled architecture.
Install
Install from Pypi via pip install depcheck
Usage
Let's say you have a project with the directory structure below:
example
root
foo
bar
main.py
__init__.py
README.md
.gitignore
.depcheck.yml
Note: Package directories should contain __init__.py to be recognized as a package.
- Navigate to the
exampe
then rundepcheck
for your project:depcheck root
- As you can see in the directory structure above, we have
.depcheck.yml
configuration file in the project directory. If you would like to change the path of the configuration file, use-f
or--file
argument:depcheck root -f /path/to/your/custom/depcheck.yml
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.