Skip to content

Instantly share code, notes, and snippets.

@alunduil
Created December 31, 2020 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alunduil/a06f33dfe14e952597a4ed154bc10a2f to your computer and use it in GitHub Desktop.
Save alunduil/a06f33dfe14e952597a4ed154bc10a2f to your computer and use it in GitHub Desktop.
.pre-commit-config.yaml
---
# 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: v3.3.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-encoding-pragma
- id: mixed-line-ending
- id: name-tests-test
- id: pretty-format-json
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.1.0
hooks:
- id: yamlfmt
exclude: \.travis\.ya?ml$
- repo: git://github.com/detailyang/pre-commit-shell
rev: 1.0.5
hooks:
- id: shell-lint
args: [--format=json]
- repo: https://github.com/adrienverge/yamllint
rev: v1.25.0
hooks:
- id: yamllint
args: [--format, parsable, --strict]
exclude: \.travis\.ya?ml$
- repo: https://github.com/codespell-project/codespell
rev: v1.17.1
hooks:
- id: codespell
- repo: https://github.com/pappasam/toml-sort
rev: v0.18.0
hooks:
- id: toml-sort
args: [--in-place]
additional_dependencies: [click]
- repo: https://github.com/executablebooks/mdformat
rev: 0.4.0 # Use the ref you want to point at
hooks:
- id: mdformat
additional_dependencies:
- mdformat-tables
- attr
- repo: local
hooks:
- id: hlint
name: hlint
entry: hlint
language: system
types: [haskell]
- id: cabal-check
name: cabal check
entry: cabal check
language: system
files: \.cabal$
pass_filenames: false
- id: haskell-ci
name: haskell-ci
entry: haskell-ci
args: [--output, .travis.yml, --ghc-head, --hlint, --last-in-series]
language: system
types: [file]
files: \.cabal$
- id: stylish-cabal
name: stylish-cabal
entry: stylish-cabal
args: [--in-place, --simplify-versions]
language: system
files: \.cabal$
- id: nixpkgs-fmt
name: nixpkgs-fmt
entry: nixpkgs-fmt
language: system
types: [nix]
- id: ormolu
name: ormolu
entry: ormolu
args: [--mode, inplace]
language: system
types: [haskell]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment