{"id":31747258,"url":"https://github.com/algorithmalchemy/flake8-only-english","last_synced_at":"2026-01-20T17:30:04.474Z","repository":{"id":316310317,"uuid":"1062692219","full_name":"AlgorithmAlchemy/flake8-only-english","owner":"AlgorithmAlchemy","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-30T00:54:21.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-30T02:32:29.964Z","etag":null,"topics":["ascii-comments","english-comments-strings","flake8-english-checker","flake8-english-linter","flake8-english-only","lang-enforcer"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlgorithmAlchemy.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-23T15:38:02.000Z","updated_at":"2025-09-30T00:54:25.000Z","dependencies_parsed_at":"2025-09-23T22:21:51.896Z","dependency_job_id":"1d578f61-c98f-4ce2-89e1-f0617b1f8ac9","html_url":"https://github.com/AlgorithmAlchemy/flake8-only-english","commit_stats":null,"previous_names":["algorithmalchemy/flake8-no-english","algorithmalchemy/flake8-only-english"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/AlgorithmAlchemy/flake8-only-english","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlgorithmAlchemy%2Fflake8-only-english","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlgorithmAlchemy%2Fflake8-only-english/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlgorithmAlchemy%2Fflake8-only-english/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlgorithmAlchemy%2Fflake8-only-english/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlgorithmAlchemy","download_url":"https://codeload.github.com/AlgorithmAlchemy/flake8-only-english/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlgorithmAlchemy%2Fflake8-only-english/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001489,"owners_count":26083102,"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-10-09T02:00:07.460Z","response_time":59,"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":["ascii-comments","english-comments-strings","flake8-english-checker","flake8-english-linter","flake8-english-only","lang-enforcer"],"created_at":"2025-10-09T13:28:21.598Z","updated_at":"2026-01-20T17:30:04.447Z","avatar_url":"https://github.com/AlgorithmAlchemy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flake8-only-english\n\n`⭐️ Thanks everyone who has starred the project, it means a lot!`\n\n[![PyPI version](https://img.shields.io/pypi/v/flake8-only-english.svg?logo=pypi\u0026logoColor=white)](https://pypi.org/project/flake8-only-english/)\nInstall from **PyPI** by clicking the badge above\n\n[![GitHub](https://img.shields.io/badge/GitHub-Repository-black?logo=github\u0026logoColor=white)](https://github.com/AlgorithmAlchemy/flake8-only-english)  \nView the **source code on GitHub**\n\n![Downloads](https://pepy.tech/badge/flake8-only-english)\n![License](https://img.shields.io/pypi/l/flake8-only-english.svg)\n\n**Flake8 plugin that enforces corporate code style by detecting and reporting\nany only-english text in Python source\ncode.**  \nIt ensures that comments, docstrings, and string literals are written in\nEnglish only, maintaining consistency across\nthe codebase.\n\n---\n\n## Features\n\n* Scans Python files for **only-english characters** in:\n    * Comments (`# ...`)\n    * Docstrings (`\"\"\" ... \"\"\"` / `''' ... '''`)\n    * String literals (`\"...\"` / `'...'`)\n* Raises a linting error (`NL001`) when only-english text is found.\n* Works seamlessly with **Flake8** and **pre-commit hooks**.\n* Lightweight and dependency-minimal.\n\n---\n\n## Installation\n\n```bash\npip install flake8-only-english\n````\n\n---\n\n## Usage\n\nRun normally via `flake8`:\n\n```bash\nflake8 app\n```\n\n```bash\nflake8 --select=NLE\n```\n\n```bash\nflake8 --select=NLE001\n```\n\n```bash\nflake8 --select=NLE002\n```\n\nExample output:\n\n```\n/example.py:5:10: NLE001 Non-English text in docstring\n```\n\n---\n\n## Example\n\n```python\n# This is a valid English comment\ndef hello():\n    \"\"\"Valid English docstring\"\"\"\n    msg = \"Hello world\"\n    return msg\n```\n\n---\n\n## Example (with pre-commit)\n\nAdd to `.pre-commit-config.yaml`:\n\n```yaml\nrepos:\n  - repo: https://github.com/AlgorithmAlchemy/flake8-only-english\n    rev: v0.3.3\n    hooks:\n      - id: flake8\n        additional_dependencies: [ flake8-only-english ]\n```\n\nRun:\n\n```bash\npre-commit run --all-files\n```\n\n---\n\n## Error Codes\n\n* **NLE001** — Non-English text in docstring.\n* **NLE002** — Non-English text in string literal\n\n---\n\n## Development\n\nClone and install in editable mode:\n\n```bash\ngit clone https://github.com/AlgorithmAlchemy/flake8-only-english\ncd flake8-only-english\npip install -e .[dev]\npytest\n```\n\n---\n\n## License\n\nMIT License © 2025 [AlgorithmAlchemy](https://github.com/AlgorithmAlchemy)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falgorithmalchemy%2Fflake8-only-english","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falgorithmalchemy%2Fflake8-only-english","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falgorithmalchemy%2Fflake8-only-english/lists"}