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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f63a2d9f1a8c5fa0fdcf3652b1ede2cae2b201a0e574c1fc8f276005fe0ba63 |
|
MD5 | a4c70654d8a3e2c02b7148bd42614142 |
|
BLAKE2b-256 | 781c6b493ca290b23026df6b4c78489dee9d9c459832bed6d7a7a4c5234fd1a0 |
Close
Hashes for flake8_all_not_strings-0.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 243e548bc9042ed4240f95f422965ca92fde895cf3f449e373eeb628f379b0f2 |
|
MD5 | 83ee78f876de135e74d1c69d3db29389 |
|
BLAKE2b-256 | e4efbd315f3c8eeee9bf3912211aa76ba8bfd7a3807bdccc595704490d9a3e41 |