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. |
Testing
In order to run unit tests under the tests/ directory you can do the following steps:-
Install editable version of flake8-all-not-strings from the top level directory
pip install -e .
Install pytest
pip install pytest
Run tests
Change to tests/ directory and run tests using pytest
cd tests/
pytest
Metadata
Release files for flake8-all-not-strings 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flake8_all_not_strings-0.0.3.tar.gz | 4.1 kB | Without provenance | Details for flake8_all_not_strings-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flake8_all_not_strings-0.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for flake8_all_not_strings-0.0.3-py2.py3-none-any.whl |
Total release size: 8.3 kB
Release files / flake8_all_not_strings-0.0.3.tar.gz
| Download URL | flake8_all_not_strings-0.0.3.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d0f5472dc135feec64339db1d23b051be4d3bbe7873f43838b862c7beb4d604
|
|
BLAKE2b-256 checksum How to use checksums |
33d848dce4a889315bcc9c0d8ec29f86d9b31802e4da8746a4f164fc7229a995
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / flake8_all_not_strings-0.0.3-py2.py3-none-any.whl
| Download URL | flake8_all_not_strings-0.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
debb85d45c779ea261915fc903ea6bc1763d3798c3199f2492d963548b32d2f5
|
|
BLAKE2b-256 checksum How to use checksums |
28dee61706796651207e00cfc5e24dc4246a3e0d32e6571be4a9265f2e6688fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for flake8-all-not-strings 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.