1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-01 00:04:58 +03:00
juvix/.pre-commit-config.yaml
Jonathan Cubides 4d0267ebb9
Fix: format juvix files in test/positive (#1978)
This PR fixes a formatting issue that drops blank lines between axiom
declarations.

It goes after:

- #1980
- Closes https://github.com/anoma/juvix/issues/1986
2023-04-12 10:07:01 +02:00

64 lines
1.7 KiB
YAML

# $ 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:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: detect-private-key
- id: mixed-line-ending
exclude: tests/
- 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/
- 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/
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v15.0.7
hooks:
- id: clang-format
files: runtime/.+\.(c|h)$
- repo: local
hooks:
- id: format-juvix-files
name: format Juvix examples
entry: make -s format-juvix-files
language: system
verbose: false
pass_filenames: false
- id: typecheck-juvix-examples
name: typecheck Juvix examples
entry: make -s typecheck-juvix-examples
language: system
verbose: false
pass_filenames: false
- id: ormolu
name: format Haskell code with ormolu
entry: make -s ormolu
language: system
pass_filenames: false