Lint: Implement check for spaces, not tabs per PEP 12 (#2379)

This commit is contained in:
CAM Gerlach 2022-03-05 12:46:59 -06:00 committed by GitHub
parent 6c980148f2
commit a0dece9632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 351 additions and 345 deletions

View File

@ -70,6 +70,12 @@ repos:
# Local checks for PEP headers and more # Local checks for PEP headers and more
- repo: local - repo: local
hooks: hooks:
- id: check-no-tabs
name: "Check tabs not used in PEPs"
language: pygrep
entry: '\t'
files: '^pep-\d+\.(rst|txt)$'
types: [text]
- id: check-required-fields - id: check-required-fields
name: "Check PEPs have all required fields" name: "Check PEPs have all required fields"
language: pygrep language: pygrep