Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

Awesome Lists containing this project

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]
```