mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
|
# Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
||
|
# SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
# See https://pre-commit.com for more information
|
||
|
# See https://pre-commit.com/hooks.html for more hooks
|
||
|
|
||
|
repos:
|
||
|
- repo: local
|
||
|
hooks:
|
||
|
- id: hlint
|
||
|
name: hlint
|
||
|
language: system
|
||
|
entry: "hlint -j"
|
||
|
require_serial: true
|
||
|
types: [haskell]
|
||
|
- id: scalafmt
|
||
|
name: scalafmt
|
||
|
language: system
|
||
|
require_serial: true
|
||
|
entry: "scalafmt --respect-project-filters"
|
||
|
types: [scala]
|
||
|
- id: javafmt
|
||
|
name: javafmt
|
||
|
language: system
|
||
|
require_serial: true
|
||
|
entry: "javafmt --set-exit-if-changed --replace"
|
||
|
types: [java]
|
||
|
- id: buildifier
|
||
|
name: buildifier
|
||
|
language: system
|
||
|
require_serial: true
|
||
|
entry: "bazel run //:buildifier-pre-commit -- -mode=fix -v=true"
|
||
|
types: [bazel]
|
||
|
- id: pprettier
|
||
|
name: pprettier
|
||
|
language: system
|
||
|
require_serial: true
|
||
|
entry: "bash -c 'yarn install --silent && yarn run pprettier --write \"$@\"'"
|
||
|
types: [ts]
|
||
|
- id: copyrights
|
||
|
name: copyright headers
|
||
|
description: Idempotently add DA copyright headers to source files.
|
||
|
language: system
|
||
|
pass_filenames: false
|
||
|
entry: "dade-copyright-headers update"
|
||
|
types: [text]
|
||
|
|