Flake8 extension for detecting incorrect QT translation
Project description
flake8-qt-tr
Flake8 extension for detecting incorrect QT translations.
Installation
with pip:
pip install flake8-qt-tr
with pre-commit (doc):
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) |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flake8-qt-tr-0.2.0.tar.gz
(7.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flake8-qt-tr-0.2.0.tar.gz.
File metadata
- Download URL: flake8-qt-tr-0.2.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14db241348d0a3177e5e557b750e662f80328dac8410014c5db9f0f4935a73d5
|
|
| MD5 |
de12a3a830b6b6bf9dbfb68c4862bd01
|
|
| BLAKE2b-256 |
02c69a3d190f0370ca791602f5a21e2c8f588c628da42545cabacd82c5e89b6d
|
File details
Details for the file flake8_qt_tr-0.2.0-py3-none-any.whl.
File metadata
- Download URL: flake8_qt_tr-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fe7ad8aa3c6caaff124832e6a819e72fdd91ab77ca9451c4e1a838a483f4e3d
|
|
| MD5 |
4a8c7f5bc8bbd1bc70704858eee47ed0
|
|
| BLAKE2b-256 |
ab7248901ccd946c9d5b2748ab89b939ffc69c880f397ce311fb61c1bc154ab5
|