Skip to main content

Flake8 extension for detecting incorrect QT translation

Project description

flake8-qt-tr

Python 3.10 License: MIT pre-commit.ci status Code style: black Ruff

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


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)

Uploaded Source

Built Distribution

flake8_qt_tr-0.2.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for flake8-qt-tr-0.2.0.tar.gz
Algorithm Hash digest
SHA256 14db241348d0a3177e5e557b750e662f80328dac8410014c5db9f0f4935a73d5
MD5 de12a3a830b6b6bf9dbfb68c4862bd01
BLAKE2b-256 02c69a3d190f0370ca791602f5a21e2c8f588c628da42545cabacd82c5e89b6d

See more details on using hashes here.

File details

Details for the file flake8_qt_tr-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flake8_qt_tr-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1fe7ad8aa3c6caaff124832e6a819e72fdd91ab77ca9451c4e1a838a483f4e3d
MD5 4a8c7f5bc8bbd1bc70704858eee47ed0
BLAKE2b-256 ab7248901ccd946c9d5b2748ab89b939ffc69c880f397ce311fb61c1bc154ab5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page