flake8 plugin which checks that modules under `__all__` are defined as strings
Project description
flake8-all-not-strings
Flake8 plugin that checks that the all the elements defined in the __all__
list are strings. Sometimes the flake8 doesn't throw error from the __init__.py
if the modules under __all__
are not strings.
Example below of an __init__.py
file which should throw an error:-
from some_module import some_function
__all__ = [
some_function
]
Example below of an __init__.py
file which should not throw an error:-
from some_module import some_function
__all__ = [
'some_function'
]
Installation
pip install flake8-all-not-strings
Flake8 codes
Code | description |
---|---|
ANS100 | '<<some_module_name>>' import under all is not a string. |
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 Distribution
Close
Hashes for flake8_all_not_strings-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7f1903e501d507560dfa7ff9379a9d6a283195880bafe3bf74eb1f5cd836e40 |
|
MD5 | 4590a95c8a6e3b3b5b21cd40f90fa446 |
|
BLAKE2b-256 | f9a5a2a7c0e243e0114f5c0f5dac2698a1503084b36866590f35846cca762b53 |
Close
Hashes for flake8_all_not_strings-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5181c135daf4711b122556ed0161e760065aae390b9f7a4713cdbf6b0748236 |
|
MD5 | 2425a23d146612e2cbea3b51ddf0fab9 |
|
BLAKE2b-256 | 428abff0b3e390ee26beeb70b2c4149f3f9dc78b8e4dedf88d4ea2ca506d9f28 |