Flake8 plugin that checks for forbidden imports in your code
Project description
Flake8 Import Linter
Flake8 plugin that checks for forbidden imports in your code
Usage
-
flake8 config add "flake8_import_linter" section add "forbidden_modules" config
example:
[flake8_import_linter] forbidden_modules = "pytest", "unittest" -
run flake8 as always
flake8 . -
if a forbidden module is detected, flake8 will show:
IMP100 forbiden import -
ENJOY!
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
File details
Details for the file flake8_import_linter-0.1.6.tar.gz.
File metadata
- Download URL: flake8_import_linter-0.1.6.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f29085e7ca7f9abc1a9d52b05fb3877859ab9c30cf23b93709ea86b9a01f97e
|
|
| MD5 |
009cc9b9c5f4ad2b38c2fbee4d035ec5
|
|
| BLAKE2b-256 |
525511b53af2914a51d59e0768f150c121ca2726511575eb605cb48364beb714
|