Linter to only allow relative imports! :sweat_smile:
Project description
only-relative-import
Linter to only allow relative imports! :sweat_smile:
Installation
pip install only-relative-import
Usage
You can either run the CLI or use it in the pre-commit.
CLI
only-relative-import --package-name <package_name>
Pre-commit
- repo:
rev: v0.1.0
hooks:
- id: only-relative-import
args: [--package-name, <package_name>]
License
This project is licensed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for only_relative_import-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a342b533dd2bdc7bd78c266d582799deb783fa04f778e3357c4c421d9a379064 |
|
MD5 | 8a29c815ac71e891b0e0c64ab05e66d4 |
|
BLAKE2b-256 | c6471aec34f265d25d6a59196734aae9229fd40dac522f1096534ffa1c520886 |
Close
Hashes for only_relative_import-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfee4031ff054a4e5d2a176676533e96a9987fab5286535fc399d1d105bb374f |
|
MD5 | bbe6b3ae622274c88a1982b7bd0cf9a8 |
|
BLAKE2b-256 | 37bbb2d0f0318cabb0d9de30a727e7035042d19e9dd02fc8142652c43e06cd33 |