flake8_tensors - flake8 plugin for deep learning codes
Project description
flake8_tensors
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.)
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
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_tensors-1.3.1.tar.gz.
File metadata
- Download URL: flake8_tensors-1.3.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd9f8e9625968f24479e48b70235b2c76731284294e348210ff9c63f13b45fe4
|
|
| MD5 |
eeba5357bfd255cd7d8190691c601fd9
|
|
| BLAKE2b-256 |
912065140f6f589142cb726f067a7f7f1fa9da8be4a71bd9c2e36bba98260d4c
|
File details
Details for the file flake8_tensors-1.3.1-py3-none-any.whl.
File metadata
- Download URL: flake8_tensors-1.3.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
943b4eb79b64e640467dfb62888fc08206807054d752e985aedb4358a5fc9a04
|
|
| MD5 |
6cc45b1f67526ec66f553cc0402aa88a
|
|
| BLAKE2b-256 |
07926e58de4fec0fde438c2bafa9d029194cb734b3511c66828a976d7b365be6
|