mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
Add end-of-file-fixer to pre-commit (GH-106065)
(cherry picked from commit 8c24a83737)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
18 lines
464 B
YAML
18 lines
464 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: check-yaml
|
|
- id: end-of-file-fixer
|
|
types: [python]
|
|
exclude: Lib/test/coding20731.py
|
|
- id: trailing-whitespace
|
|
types_or: [c, python, rst]
|
|
|
|
- repo: https://github.com/sphinx-contrib/sphinx-lint
|
|
rev: v0.6.7
|
|
hooks:
|
|
- id: sphinx-lint
|
|
args: [--enable=default-role]
|
|
files: ^Doc/
|
|
types: [rst]
|