only-relative-import
Linter to only allow relative imports! 😅
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.
Metadata
Release files for only-relative-import 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| only_relative_import-0.1.0.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| only_relative_import-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / only_relative_import-0.1.0.tar.gz
| Download URL | only_relative_import-0.1.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a342b533dd2bdc7bd78c266d582799deb783fa04f778e3357c4c421d9a379064
|
|
BLAKE2b-256 checksum How to use checksums |
c6471aec34f265d25d6a59196734aae9229fd40dac522f1096534ffa1c520886
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / only_relative_import-0.1.0-py3-none-any.whl
| Download URL | only_relative_import-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfee4031ff054a4e5d2a176676533e96a9987fab5286535fc399d1d105bb374f
|
|
BLAKE2b-256 checksum How to use checksums |
37bbb2d0f0318cabb0d9de30a727e7035042d19e9dd02fc8142652c43e06cd33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|