Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asottile-archive/flake8-match
flake8 plugin which forbids match statements (PEP 634)
https://github.com/asottile-archive/flake8-match
Last synced: 3 months ago
JSON representation
flake8 plugin which forbids match statements (PEP 634)
- Host: GitHub
- URL: https://github.com/asottile-archive/flake8-match
- Owner: asottile-archive
- License: mit
- Archived: true
- Created: 2021-02-09T22:42:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-04T18:34:06.000Z (9 months ago)
- Last Synced: 2024-07-28T23:33:39.727Z (3 months ago)
- Language: Python
- Size: 144 KB
- Stars: 27
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-flake8-extensions - flake8-match - Report `match` statement. (Limitations)
README
# ARHIVED
it is feature complete and I don't plan on updating it further
___
[![build status](https://github.com/asottile/flake8-match/actions/workflows/main.yml/badge.svg)](https://github.com/asottile/flake8-match/actions/workflows/main.yml)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/flake8-match/main.svg)](https://results.pre-commit.ci/latest/github/asottile/flake8-match/main)flake8-match
============flake8 plugin which forbids match statements (PEP 634)
## installation
```bash
pip install flake8-match
```## flake8 codes
| Code | Description |
|--------|-----------------------------|
| MAT001 | do not use match statements |## 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.4
hooks:
- id: flake8
additional_dependencies: [flake8-match==1.0.0]
```