Usage
Deprecate Dependencies
A dependency can be marked as deprecated
- this means that the intention is to remove it over time, but it is still allowed.
tach check
will not error on deprecated dependencies, but it will surface each import that uses the deprecated dependency.
Example
Given modules called ‘core’ and ‘parsing’:
Then, in parsing.py
:
This import won’t fail tach check
, instead you’ll see:
Note that we still see that all module dependencies are valid! To fail on the dependency, simply remove it from the depends_on
key.