2022-04-04 18:44:08 +03:00
|
|
|
# $ pip install pre-commit
|
|
|
|
# $ pre-commit install
|
|
|
|
# $ pre-commit run --all-files
|
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
repos:
|
2023-03-21 22:01:48 +03:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-01-27 17:24:10 +03:00
|
|
|
rev: v4.4.0
|
2022-04-04 18:44:08 +03:00
|
|
|
hooks:
|
2023-03-21 22:01:48 +03:00
|
|
|
- id: check-yaml
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-case-conflict
|
2023-03-23 11:57:38 +03:00
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-toml
|
|
|
|
- id: detect-private-key
|
2023-03-21 22:01:48 +03:00
|
|
|
- id: mixed-line-ending
|
2022-06-09 17:36:07 +03:00
|
|
|
exclude: tests/
|
2023-03-23 11:57:38 +03:00
|
|
|
- id: trailing-whitespace
|
|
|
|
exclude: tests/
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
exclude: tests/|assets/
|
|
|
|
|
|
|
|
- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
|
|
|
rev: 3.0.0
|
|
|
|
hooks:
|
|
|
|
- id: forbid-binary
|
|
|
|
name: forbid binary files
|
|
|
|
exclude: assets/
|
2022-04-04 18:44:08 +03:00
|
|
|
|
2023-03-21 22:01:48 +03:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
|
|
rev: v3.0.0-alpha.6
|
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
types_or: [css, javascript, markdown, yaml, toml]
|
|
|
|
exclude: examples/|tests/|assets/
|
|
|
|
|
2023-03-23 11:57:38 +03:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
|
|
rev: v15.0.7
|
|
|
|
hooks:
|
|
|
|
- id: clang-format
|
|
|
|
files: runtime/.+\.(c|h)$
|
|
|
|
|
|
|
|
- repo: local
|
2022-04-04 18:44:08 +03:00
|
|
|
hooks:
|
2023-04-12 11:07:01 +03:00
|
|
|
- id: format-juvix-files
|
2023-03-29 16:51:04 +03:00
|
|
|
name: format Juvix examples
|
2023-06-02 18:28:07 +03:00
|
|
|
entry: make format-juvix-files
|
2023-03-23 11:57:38 +03:00
|
|
|
language: system
|
2023-06-02 18:28:07 +03:00
|
|
|
verbose: true
|
2023-03-23 11:57:38 +03:00
|
|
|
pass_filenames: false
|
2023-03-29 16:51:04 +03:00
|
|
|
|
|
|
|
- id: typecheck-juvix-examples
|
|
|
|
name: typecheck Juvix examples
|
2023-06-02 18:28:07 +03:00
|
|
|
entry: make typecheck-juvix-examples
|
2023-03-29 16:51:04 +03:00
|
|
|
language: system
|
2023-06-02 18:28:07 +03:00
|
|
|
verbose: true
|
2023-03-29 16:51:04 +03:00
|
|
|
pass_filenames: false
|
|
|
|
|
2023-03-21 22:01:48 +03:00
|
|
|
- id: ormolu
|
2023-03-23 11:57:38 +03:00
|
|
|
name: format Haskell code with ormolu
|
|
|
|
entry: make -s ormolu
|
|
|
|
language: system
|
|
|
|
pass_filenames: false
|