Name | flake8-qt-tr JSON |
Version |
0.2.0
JSON |
| download |
home_page | |
Summary | Flake8 extension for detecting incorrect QT translation |
upload_time | 2023-10-04 22:26:10 |
maintainer | |
docs_url | None |
author | ostr00000 |
requires_python | >=3.10 |
license | MIT |
keywords |
flake8
qt
translation
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# flake8-qt-tr
[![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-3100/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/ostr00000/flake8-qt-tr/main.svg)](https://results.pre-commit.ci/latest/github/ostr00000/flake8-qt-tr/main)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
Flake8 extension for detecting incorrect QT translations.
## Installation
with `pip`:
```shell
pip install flake8-qt-tr
```
with [`pre-commit`](https://pre-commit.com/) ([doc](https://flake8.pycqa.org/en/latest/user/using-hooks.html)):
```yaml
repos:
- repo: https://github.com/PyCQA/flake8
rev: '' # pick a git hash/tag
hooks:
- id: flake8
additional_dependencies:
# ...
- flake8-qt-tr
```
## Error Codes
| Code | Description | Example |
|-------|----------------------------------------------|------------------------------------|
| TR011 | Translation is formatted by f-string. | `self.tr(f"Value: {val}")` |
| TR012 | Translation is formatted by `format` method. | `self.tr("Value: {}".format(val))` |
| TR013 | Translation is formatted by printf-style. | `self.tr("Value: %s" % val)` |
Raw data
{
"_id": null,
"home_page": "",
"name": "flake8-qt-tr",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "",
"keywords": "flake8,qt,translation",
"author": "ostr00000",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/02/c6/9a3d190f0370ca791602f5a21e2c8f588c628da42545cabacd82c5e89b6d/flake8-qt-tr-0.2.0.tar.gz",
"platform": null,
"description": "# flake8-qt-tr\n\n[![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-3100/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/ostr00000/flake8-qt-tr/main.svg)](https://results.pre-commit.ci/latest/github/ostr00000/flake8-qt-tr/main)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\nFlake8 extension for detecting incorrect QT translations.\n\n## Installation\n\nwith `pip`:\n\n```shell\npip install flake8-qt-tr\n```\n\nwith [`pre-commit`](https://pre-commit.com/) ([doc](https://flake8.pycqa.org/en/latest/user/using-hooks.html)):\n\n```yaml\nrepos:\n - repo: https://github.com/PyCQA/flake8\n rev: '' # pick a git hash/tag\n hooks:\n - id: flake8\n additional_dependencies:\n # ...\n - flake8-qt-tr\n```\n\n## Error Codes\n\n| Code | Description | Example |\n|-------|----------------------------------------------|------------------------------------|\n| TR011 | Translation is formatted by f-string. | `self.tr(f\"Value: {val}\")` |\n| TR012 | Translation is formatted by `format` method. | `self.tr(\"Value: {}\".format(val))` |\n| TR013 | Translation is formatted by printf-style. | `self.tr(\"Value: %s\" % val)` |\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Flake8 extension for detecting incorrect QT translation",
"version": "0.2.0",
"project_urls": {
"Homepage": "https://github.com/ostr00000/flake8-qt-tr"
},
"split_keywords": [
"flake8",
"qt",
"translation"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ab7248901ccd946c9d5b2748ab89b939ffc69c880f397ce311fb61c1bc154ab5",
"md5": "4a8c7f5bc8bbd1bc70704858eee47ed0",
"sha256": "1fe7ad8aa3c6caaff124832e6a819e72fdd91ab77ca9451c4e1a838a483f4e3d"
},
"downloads": -1,
"filename": "flake8_qt_tr-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4a8c7f5bc8bbd1bc70704858eee47ed0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 4334,
"upload_time": "2023-10-04T22:26:08",
"upload_time_iso_8601": "2023-10-04T22:26:08.655351Z",
"url": "https://files.pythonhosted.org/packages/ab/72/48901ccd946c9d5b2748ab89b939ffc69c880f397ce311fb61c1bc154ab5/flake8_qt_tr-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "02c69a3d190f0370ca791602f5a21e2c8f588c628da42545cabacd82c5e89b6d",
"md5": "de12a3a830b6b6bf9dbfb68c4862bd01",
"sha256": "14db241348d0a3177e5e557b750e662f80328dac8410014c5db9f0f4935a73d5"
},
"downloads": -1,
"filename": "flake8-qt-tr-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "de12a3a830b6b6bf9dbfb68c4862bd01",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 7077,
"upload_time": "2023-10-04T22:26:10",
"upload_time_iso_8601": "2023-10-04T22:26:10.998724Z",
"url": "https://files.pythonhosted.org/packages/02/c6/9a3d190f0370ca791602f5a21e2c8f588c628da42545cabacd82c5e89b6d/flake8-qt-tr-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-04 22:26:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ostr00000",
"github_project": "flake8-qt-tr",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "flake8-qt-tr"
}