Skip to main content

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)

Metadata

Release files for flake8-qt-tr 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-qt-tr 0.2.0
File Size Uploaded Provenance Actions
flake8-qt-tr-0.2.0.tar.gz 7.1 kB Without provenance Details for flake8-qt-tr-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-qt-tr 0.2.0
File Interpreter ABI Platform Actions
flake8_qt_tr-0.2.0-py3-none-any.whl Python 3 none any Details for flake8_qt_tr-0.2.0-py3-none-any.whl

Total release size: 11.4 kB

Release files / flake8-qt-tr-0.2.0.tar.gz

Download URL flake8-qt-tr-0.2.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
14db241348d0a3177e5e557b750e662f80328dac8410014c5db9f0f4935a73d5
BLAKE2b-256 checksum
How to use checksums
02c69a3d190f0370ca791602f5a21e2c8f588c628da42545cabacd82c5e89b6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / flake8_qt_tr-0.2.0-py3-none-any.whl

Download URL flake8_qt_tr-0.2.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fe7ad8aa3c6caaff124832e6a819e72fdd91ab77ca9451c4e1a838a483f4e3d
BLAKE2b-256 checksum
How to use checksums
ab7248901ccd946c9d5b2748ab89b939ffc69c880f397ce311fb61c1bc154ab5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for flake8-qt-tr 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page