-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-hooks.yaml
35 lines (30 loc) · 955 Bytes
/
.pre-commit-hooks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# pre-commit-hooks
#
# Copyright ©2021-2022 Marcin Orlowski <mail [@] MarcinOrlowski.com>
# https://github.com/MarcinOrlowski/pre-commit-hooks/
#
- id: checkstyle-jar
name: Checkstyle Java source code
description: "Runs CheckStyle JAR on modified Java files."
entry: mor-checkstyle-jar
language: python
types: [file, java]
# additional_dependencies: [requests]
- id: trailing-whitespaces
name: Check there is no trailing whitespaces
description: "Looks for trailing whitespace. Can fix it too!"
entry: mor-trailing-whitespaces
language: python
types: [file]
- id: end-of-file
name: Check that file ends with one newline
description: "Ensures that a file is either empty, or ends with one newline."
entry: mor-end-of-file
language: python
types: [file]
- id: no-op
name: Do-nothing hook
description: "[DEV] Dummy NO-OP hook."
entry: mor-no-op
language: python