-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
57 lines (51 loc) · 1.52 KB
/
.pre-commit-config.yaml
File metadata and controls
57 lines (51 loc) · 1.52 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
exclude: ".git"
fail_fast: false
repos:
- repo: local
hooks:
- id: end-of-file-fixer
name: Fix End of Files
description: Ensures that a file is either empty, or ends with one newline.
entry: end-of-file-fixer
language: system
types: [python]
files: \.py$
stages: [pre-commit, pre-push, manual]
- id: mixed-line-ending
name: Mixed line ending
description: Replaces or checks mixed line ending
entry: mixed-line-ending
language: system
files: \.py$
types: [python]
- id: trailing-whitespace
name: Trim Trailing Whitespace
description: This hook trims trailing whitespace.
entry: trailing-whitespace-fixer
language: system
files: \.py$
types: [python]
stages: [pre-commit, pre-push, manual]
# - id: check-poetry
# name: Poetry check
# description: Validates the structure of the pyproject.toml file
# entry: poetry check
# language: system
# pass_filenames: false
# files: pyproject.toml
- id: ruff
name: ruff
entry: ruff check
language: system
files: \.py$
types: [python]
args: [--fix]
exclude: open_autonlu/nervaluate
- id: ruff-format
name: ruff-format
description: A formatter for Python files.
entry: ruff format
language: system
files: \.py$
types_or: [python]
require_serial: true