An open API service indexing awesome lists of open source software.

https://github.com/kludex/only-relative-import

Only allow relative imports! 😅
https://github.com/kludex/only-relative-import

Last synced: 2 months ago
JSON representation

Only allow relative imports! 😅

Awesome Lists containing this project

README

          


only-relative-import




Latest Commit








Package version



Linter to only allow relative imports! :sweat_smile:

## Installation

```bash
pip install only-relative-import
```

## Usage

You can either run the CLI or use it in the pre-commit.

### CLI

```bash
only-relative-import --package-name
```

### Pre-commit

```yaml
- repo:
rev: v0.1.0
hooks:
- id: only-relative-import
args: [--package-name, ]
```

## License

This project is licensed under the terms of the MIT license.