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-10-23 20:12:56 +03:00
|
|
|
rev: v4.5.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
|
2023-09-28 15:55:35 +03:00
|
|
|
rev: v3.0.3
|
2023-03-21 22:01:48 +03:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
2023-09-28 15:55:35 +03:00
|
|
|
types_or: [css, javascript, markdown, yaml]
|
2023-03-21 22:01:48 +03:00
|
|
|
exclude: examples/|tests/|assets/
|
|
|
|
|
2023-09-28 15:55:35 +03:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
|
|
rev: v3.0.3
|
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
types_or: [json]
|
|
|
|
|
2023-03-23 11:57:38 +03:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
2024-06-26 20:08:33 +03:00
|
|
|
rev: v18.1.4
|
2023-03-23 11:57:38 +03:00
|
|
|
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
|