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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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