{"id":13733693,"url":"https://github.com/ggupta2005/flake8-all-not-strings","last_synced_at":"2025-08-22T12:24:25.568Z","repository":{"id":190003418,"uuid":"657808433","full_name":"ggupta2005/flake8-all-not-strings","owner":"ggupta2005","description":"flake8 plugin which checks that modules under `__all__` are defined as strings","archived":false,"fork":false,"pushed_at":"2025-06-19T21:26:56.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-21T04:48:43.893Z","etag":null,"topics":["flake8","linting","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ggupta2005.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-06-23T22:54:12.000Z","updated_at":"2025-06-19T21:26:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"7681e117-b4a5-47f0-9def-ed76071dbed2","html_url":"https://github.com/ggupta2005/flake8-all-not-strings","commit_stats":null,"previous_names":["ggupta2005/flake8-all-not-strings"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ggupta2005/flake8-all-not-strings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggupta2005%2Fflake8-all-not-strings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggupta2005%2Fflake8-all-not-strings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggupta2005%2Fflake8-all-not-strings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggupta2005%2Fflake8-all-not-strings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ggupta2005","download_url":"https://codeload.github.com/ggupta2005/flake8-all-not-strings/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggupta2005%2Fflake8-all-not-strings/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271636050,"owners_count":24794147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flake8","linting","python"],"created_at":"2024-08-03T03:00:47.607Z","updated_at":"2025-08-22T12:24:25.484Z","avatar_url":"https://github.com/ggupta2005.png","language":"Python","funding_links":[],"categories":["Clean code"],"sub_categories":[],"readme":"# flake8-all-not-strings\n![PyPI data-understand](https://img.shields.io/pypi/v/flake8-all-not-strings)\n![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)\n![versions](https://img.shields.io/pypi/pyversions/flake8-all-not-strings)\n![Downloads](https://static.pepy.tech/badge/flake8-all-not-strings)\n\n[![Python Linting](https://github.com/ggupta2005/flake8-all-not-strings/actions/workflows/python-linting.yml/badge.svg)](https://github.com/ggupta2005/flake8-all-not-strings/actions/workflows/python-linting.yml)\n[![Run Python Unit Tests](https://github.com/ggupta2005/flake8-all-not-strings/actions/workflows/python-unit-tests.yml/badge.svg)](https://github.com/ggupta2005/flake8-all-not-strings/actions/workflows/python-unit-tests.yml)\n\n[![CodeFactor](https://www.codefactor.io/repository/github/ggupta2005/flake8-all-not-strings/badge)](https://www.codefactor.io/repository/github/ggupta2005/flake8-all-not-strings)\n\nFlake8 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.\n\nExample below of an `__init__.py` file which should throw an error:-\n```\nfrom some_module import some_function \n__all__ = [\n      some_function\n]\n```\n\nExample below of an `__init__.py` file which should not throw an error:-\n```\nfrom some_module import some_function \n__all__ = [\n      'some_function'\n]\n```\n\n## Installation\n```\npip install flake8-all-not-strings\n```\n\n## Flake8 codes\n| Code | description |\n|----------|----------|\n| ANS100 | '\u003c\u003csome_module_name\u003e\u003e' import under __all__ is not a string. |\n\n## Testing\nIn order to run unit tests under the `tests/` directory you can do the following steps:-\n\n### Install editable version of `flake8-all-not-strings` from the top level directory\n```\npip install -e .\n```\n\n### Install `pytest`\n```\npip install pytest\n```\n\n### Run tests\nChange to `tests/` directory and run tests using `pytest`\n```\ncd tests/\npytest\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggupta2005%2Fflake8-all-not-strings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fggupta2005%2Fflake8-all-not-strings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggupta2005%2Fflake8-all-not-strings/lists"}