Only allow relative imports! 😅
MIT License
Linter to only allow relative imports! 😅
pip install only-relative-import
You can either run the CLI or use it in the pre-commit.
only-relative-import --package-name <package_name>
- repo:
rev: v0.1.0
hooks:
- id: only-relative-import
args: [--package-name, <package_name>]
This project is licensed under the terms of the MIT license.