flake8 plugin which forbids assignment expressions (the walrus operator)
Project description
flake8-walrus
flake8 plugin which forbids assignment expressions (the walrus operator)
installation
pip install flake8-walrus
flake8 codes
Code | Description |
---|---|
ASN001 | do not use assignment expressions |
rationale
lol
as a pre-commit hook
See pre-commit for instructions
Sample .pre-commit-config.yaml
:
- repo: https://github.com/pycqa/flake8
rev: 3.8.1
hooks:
- id: flake8
additional_dependencies: [flake8-walrus==1.1.0]
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
flake8_walrus-1.2.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file flake8_walrus-1.2.0.tar.gz
.
File metadata
- Download URL: flake8_walrus-1.2.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dff966f0cc67abae104349812cd255ef3b5e09a7f768eac39b5a4a39f4d1e73 |
|
MD5 | e68619cf6f0d693b25521cca67c76d07 |
|
BLAKE2b-256 | 9f1bb42d60e72bd90fb679fff33ab5cb82bcbdfd7ec93838628632e2b52f732b |
File details
Details for the file flake8_walrus-1.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: flake8_walrus-1.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9f72722188b95a393f8727a0eaeb8f31d9796eeb5a4328c9c4499ccd57e589d |
|
MD5 | 0a32943d2a15fff4e193ec0b8101da13 |
|
BLAKE2b-256 | 801124a66341aba4b456e4abdbf09c67954dbf5ea78a755be4a6681700d622ae |