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://gitlab.com/pycqa/flake8 rev: 3.7.8 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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size flake8_walrus-1.1.0-py2.py3-none-any.whl (3.2 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View |
Filename, size flake8_walrus-1.1.0.tar.gz (2.7 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for flake8_walrus-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ca99e92d42cef82fcdea713a9305e77722c529a2892dabdd2a5183d31ac1e75 |
|
MD5 | 0f953a90e441f1a0941ecfb3becf58b8 |
|
BLAKE2-256 | 565a5cb8d568333b3df8499d7655efd6558c7a514cdc117a1445b549ff820746 |