repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.4.0 hooks: - id: mixed-line-ending name: Normalize mixed line endings args: [--fix=lf] - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.8.0 hooks: - id: rst-backticks - id: rst-inline-touching-normal files: '^pep-\d+\.txt|\.rst$' types: [text] - id: rst-directive-colons files: '^pep-\d+\.txt|\.rst$' types: [text] - repo: local hooks: - id: check-created-exists name: "Check all PEPs have created date" language: pygrep entry: '^Created:' args: ['--negate'] files: '^pep-\d+\.(rst|txt)$' types: [text] - id: validate-created name: "Validate created dates" language: pygrep entry: '^Created:(?:(?! +([0-2][0-9]|(3[01]))-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(199[0-9]|20[0-9][0-9])( \(|$)))' files: '^pep-\d+\.(rst|txt)$' types: [text]