Skip to main content

flake8_tensors

pyversion PyPI - License

flake8 plugin which recommends some tricks for machine learning codes.

Installation

The plugin requires python3.8+.

Install the stable version: pip install flake8_tensors --upgrade

Or with pipx: pipx install flake8 pipx inject flake8 flake8_tensors

Usage

After the code is installed, call flake8 on your project. The plugin emits warning messages with "WT" prefix, e.g. WT100.

The messages meant to refer my opinionated best practices, or cool projects, like einops, opt_einsum, Adabelief, etc.

If you don't understand a warning, open a ticket, and i will clarify it. If you have suggestions, let me know. And of course, if you find a false positive, share the problematic snippet. (False positives are absolutely possible, actually, quite easy to make one. But assuming reasonable developer practices, like not calling your variable as "BatchNorm3d", the false positive rate should be low.)

Metadata

Release files for flake8-tensors 1.3.1

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-tensors 1.3.1
File Size Uploaded Provenance Actions
flake8_tensors-1.3.1.tar.gz 4.6 kB Without provenance Details for flake8_tensors-1.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-tensors 1.3.1
File Interpreter ABI Platform Actions
flake8_tensors-1.3.1-py3-none-any.whl Python 3 none any Details for flake8_tensors-1.3.1-py3-none-any.whl

Total release size: 10.7 kB

Release files / flake8_tensors-1.3.1.tar.gz

Download URL flake8_tensors-1.3.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bd9f8e9625968f24479e48b70235b2c76731284294e348210ff9c63f13b45fe4
BLAKE2b-256 checksum
How to use checksums
912065140f6f589142cb726f067a7f7f1fa9da8be4a71bd9c2e36bba98260d4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / flake8_tensors-1.3.1-py3-none-any.whl

Download URL flake8_tensors-1.3.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
943b4eb79b64e640467dfb62888fc08206807054d752e985aedb4358a5fc9a04
BLAKE2b-256 checksum
How to use checksums
07926e58de4fec0fde438c2bafa9d029194cb734b3511c66828a976d7b365be6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for flake8-tensors 1.3.1

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

1.3.1 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