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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file only_relative_import-0.1.0.tar.gz.
File metadata
- Download URL: only_relative_import-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a342b533dd2bdc7bd78c266d582799deb783fa04f778e3357c4c421d9a379064
|
|
| MD5 |
8a29c815ac71e891b0e0c64ab05e66d4
|
|
| BLAKE2b-256 |
c6471aec34f265d25d6a59196734aae9229fd40dac522f1096534ffa1c520886
|
File details
Details for the file only_relative_import-0.1.0-py3-none-any.whl.
File metadata
- Download URL: only_relative_import-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfee4031ff054a4e5d2a176676533e96a9987fab5286535fc399d1d105bb374f
|
|
| MD5 |
bbe6b3ae622274c88a1982b7bd0cf9a8
|
|
| BLAKE2b-256 |
37bbb2d0f0318cabb0d9de30a727e7035042d19e9dd02fc8142652c43e06cd33
|