Calmcode - pre-commit: json checks

Json Checks

1 2 3 4 5 6 7 8 9 10

You can find a collection of available pre-commit hooks on the precommit documentation page.

The config file we use in the video is listed below.

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v2.4.0
    hooks:
    -   id: trailing-whitespace
    -   id: end-of-file-fixer
    -   id: check-yaml
    -   id: check-added-large-files
    -   id: check-ast
    -   id: check-json

Be sure to run install before you commit.

pre-commit install