Skip to main content

flake2lint

Tool and pre-commit hook to augment Flake8 noqa comments with PyLint comments.

Docs

Documentation Build Status Docs Check Status

Tests

Linux Test Status Windows Test Status macOS Test Status Coverage

PyPI

PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel

Activity

GitHub last commit GitHub commits since tagged version Maintenance PyPI - Downloads

QA

CodeFactor Grade Flake8 Status mypy status

Other

License GitHub top language Requirements Status

Installation

flake2lint can be installed from PyPI.

To install with pip:

$ python -m pip install flake2lint

Usage

flake2lint [-v] [-r] [FILENAMES]

-v / --verbose

Show verbose output.

-r / --recursive

Permits the use of the pattern ** to match any files, directories and subdirectories.

See the documentation for more details.

Supported Flake8 Codes

flake2lint currently augments the following flake8 codes:

  • A001 ➞ redefined-builtin

  • A002 ➞ redefined-builtin

  • A003 ➞ redefined-builtin

Contributions to add support for more codes are more than welcome. The relevant code is here.

Example

Before:

class FancyDialog(wx.Dialog):

        def __init__(
                        self,
                        parent,
                        id=wx.ID_ANY,  # noqa: A002
                        title="My Fancy Dialog",
                        pos=wx.DefaultPosition,
                        size=wx.DefaultSize,
                        style=wx.DEFAULT_DIALOG_STYLE,
                        name=wx.DialogNameStr,
                        data=None
                        ): ...

After:

class FancyDialog(wx.Dialog):

        def __init__(
                        self,
                        parent,
                        id=wx.ID_ANY,  # noqa: A002  # pylint: disable=redefined-builtin
                        title="My Fancy Dialog",
                        pos=wx.DefaultPosition,
                        size=wx.DefaultSize,
                        style=wx.DEFAULT_DIALOG_STYLE,
                        name=wx.DialogNameStr,
                        data=None
                        ): ...

Metadata

Release files for flake2lint 0.4.3

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

Source distribution (sdist)

Source distribution for flake2lint 0.4.3
File Size Uploaded Provenance Actions
flake2lint-0.4.3.tar.gz 6.4 kB Without provenance Details for flake2lint-0.4.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake2lint 0.4.3
File Interpreter ABI Platform Actions
flake2lint-0.4.3-py3-none-any.whl Python 3 none any Details for flake2lint-0.4.3-py3-none-any.whl

Total release size: 23.8 kB

Release files / flake2lint-0.4.3.tar.gz

Download URL flake2lint-0.4.3.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a09883486e713ce2f7688da3489d54a32f91d6de3ae201829d5df7a58dad70ae
BLAKE2b-256 checksum
How to use checksums
16065f62d3e0b13c42ea51eee1ccb3508182fc812d95085bb68cf48bb807859a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / flake2lint-0.4.3-py3-none-any.whl

Download URL flake2lint-0.4.3-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
271c46d464d1ad2906f89a10fa38b90c37788c5318082bb8d009c55ca705a0b3
BLAKE2b-256 checksum
How to use checksums
5c49b17b15c84460dd85bcc90f51657adfef71a4815a66bd3498c6edbbd5cd07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for flake2lint 0.4.3

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.

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