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 hashes)
Built Distribution
Close
Hashes for flake8_walrus-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9f72722188b95a393f8727a0eaeb8f31d9796eeb5a4328c9c4499ccd57e589d |
|
MD5 | 0a32943d2a15fff4e193ec0b8101da13 |
|
BLAKE2b-256 | 801124a66341aba4b456e4abdbf09c67954dbf5ea78a755be4a6681700d622ae |