Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asottile-archive/flake8-walrus
flake8 plugin which forbids assignment expressions (the walrus operator)
https://github.com/asottile-archive/flake8-walrus
flake8
Last synced: 3 months ago
JSON representation
flake8 plugin which forbids assignment expressions (the walrus operator)
- Host: GitHub
- URL: https://github.com/asottile-archive/flake8-walrus
- Owner: asottile-archive
- License: mit
- Archived: true
- Created: 2019-08-03T20:15:04.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-04T18:35:18.000Z (9 months ago)
- Last Synced: 2024-07-28T23:33:44.268Z (3 months ago)
- Topics: flake8
- Language: Python
- Size: 164 KB
- Stars: 45
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-flake8-extensions - flake8-walrus - Report walrus operator (`:=`). (Limitations)
README
# ARCHIVED
it is feature complete and I don't plan on updating it further
___
[![build status](https://github.com/asottile/flake8-walrus/actions/workflows/main.yml/badge.svg)](https://github.com/asottile/flake8-walrus/actions/workflows/main.yml)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/flake8-walrus/main.svg)](https://results.pre-commit.ci/latest/github/asottile/flake8-walrus/main)flake8-walrus
================flake8 plugin which forbids assignment expressions (the walrus operator)
## installation
```bash
pip install flake8-walrus
```## flake8 codes
| Code | Description |
|--------|-----------------------------------|
| ASN001 | do not use assignment expressions |## rationale
lol
## as a pre-commit hook
See [pre-commit](https://github.com/pre-commit/pre-commit) for instructions
Sample `.pre-commit-config.yaml`:
```yaml
- repo: https://github.com/pycqa/flake8
rev: 3.8.1
hooks:
- id: flake8
additional_dependencies: [flake8-walrus==1.1.0]
```