Skip to main content

Linter to only allow relative imports! :sweat_smile:

Project description

only-relative-import

Latest Commit
Package version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

only_relative_import-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

only_relative_import-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for only_relative_import-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a342b533dd2bdc7bd78c266d582799deb783fa04f778e3357c4c421d9a379064
MD5 8a29c815ac71e891b0e0c64ab05e66d4
BLAKE2b-256 c6471aec34f265d25d6a59196734aae9229fd40dac522f1096534ffa1c520886

See more details on using hashes here.

File details

Details for the file only_relative_import-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for only_relative_import-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfee4031ff054a4e5d2a176676533e96a9987fab5286535fc399d1d105bb374f
MD5 bbe6b3ae622274c88a1982b7bd0cf9a8
BLAKE2b-256 37bbb2d0f0318cabb0d9de30a727e7035042d19e9dd02fc8142652c43e06cd33

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page