Add patchwright/wildlint to supported hooks by patchwright · Pull Request #1089 · pre-commit/pre-commit.com · GitHub
Skip to content

Add patchwright/wildlint to supported hooks - #1089

Closed
patchwright wants to merge 1 commit into
pre-commit:mainfrom
patchwright:main
Closed

patchwright wants to merge 1 commit into
pre-commit:mainfrom
patchwright:main

Conversation

@patchwright

Copy link
Copy Markdown

Adds patchwright/wildlint to the Python hooks list.

wildlint is a Python linter (PyPI) for bug classes off-the-shelf linters miss — each rule is distilled from a real upstream fix. Current rules include a dead argparse dest (flag parses then its value is never read), str.replace-as-prefix-strip where removeprefix/removesuffix was meant, and a few opt-in ones (str.split(' ') vs str.split(), deep negative indexing, not A and B or C precedence).

It ships a .pre-commit-hooks.yaml (id: wildlint, language: python, types: [python]), so this config works as-is:

repos:
  - repo: https://github.com/patchwright/wildlint
    rev: v0.5.2
    hooks:
      - id: wildlint

@asottile asottile closed this Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants