Skip to main content

flake8-all-not-strings

PyPI data-understand MIT license versions Downloads

Python Linting Run Python Unit Tests

CodeFactor

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)

Source distribution for flake8-all-not-strings 0.0.3
File Size Uploaded
flake8_all_not_strings-0.0.3.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flake8-all-not-strings 0.0.3
File Interpreter ABI Platform
flake8_all_not_strings-0.0.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page