| # Install pre-commit hooks via | |
| # pre-commit install | |
| exclude: > | |
| (?x)^( | |
| \.vscode/settings\.json| | |
| test.*\.md| | |
| test.*\.txt| | |
| test.*\.html| | |
| .*commonmark\.json| | |
| benchmark/.*\.md| | |
| markdown\_it/cli/spec\.md | |
| )$ | |
| repos: | |
| - repo: git://github.com/pre-commit/pre-commit-hooks | |
| rev: v2.2.3 | |
| hooks: | |
| - id: check-json | |
| - id: check-yaml | |
| - id: end-of-file-fixer | |
| - id: trailing-whitespace | |
| - id: flake8 | |
| - repo: https://github.com/psf/black | |
| rev: stable | |
| hooks: | |
| - id: black |