Python 3 check local import for flake8
Project description
flake8-local-import
Python 3 check local import for flake8
Installation
pip install flake8-local-import
Configuration
No configuration required
Example
# Error
def func():
statement
from app_package import A # LI100 Local import must be at the beginning of the method body
# Error
def func():
statement
from app_package import A # LI100 Local import must be at the beginning of the method body
# Good
def func():
from app_package import A
statement
Error codes
code | description |
---|---|
LI100 | Local import must be at the beginning of the method body |
LI101 | Packages from external modules should not be imported locally |
LI102 | Packages from standard modules should not be imported locally |
Links
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
Built Distributions
Close
Hashes for flake8_local_import-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10b58ba6567dd426955bb4e2790da712a89e553af47fb74a9aead391a66ba386 |
|
MD5 | e4794de77797519c1155bb5fec8932a8 |
|
BLAKE2b-256 | 305290460a4157fb80c3859335d7f31c72f15f26976798cd780b9bfdeabaa2e2 |
Close
Hashes for flake8_local_import-1.0.0-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4492d9493532c61029589190bbe19fae2357d0b862358edf4a9f52d19baac55 |
|
MD5 | 26309e3cb86eb3225ba0406f29e9be62 |
|
BLAKE2b-256 | 531449cb9648e4fe232e0ec84aab378d990ef871d71d151a8ddd889b130050b8 |
Close
Hashes for flake8_local_import-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51d895b60d7ca35efbade2f44e1afc632fcd252d94e77399fbec2e6f2399dbdd |
|
MD5 | 00d1382490f11d64612175b9a19f94e4 |
|
BLAKE2b-256 | d13ffdb15681b264b918b89cadc82d294fbf1f47accba67700b7f12a1152e6ba |