-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
52 lines (51 loc) · 1.34 KB
/
.pre-commit-config.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
default_language_version:
python: python3.11
repos:
- repo: local
hooks:
- id: whitespace
name: Strip trailing whitespace
entry: ./strip_whitespaces.sh
language: system
always_run: true
pass_filenames: false
- id: ruff
name: Format code with Ruff
entry: ruff . --preview
language: system
always_run: true
pass_filenames: false
- id: isort
name: Format code with isort
entry: isort
language: system
always_run: true
args:
[
"--profile=black",
"--py=311",
"--line-length=120",
"--multi-line=3",
"--trailing-comma",
"--force-grid-wrap=0",
"--use-parentheses",
"--ensure-newline-before-comments",
"--project=dataramp",
]
# - id: pylint
# name: Lint code
# entry: python3 -m pylint dataramp/
# language: system
# always_run: true
# pass_filenames: false
# args:
# [
# "--disable=missing-docstring",
# "--max-line-length=120",
# ]
# - id: mypy
# name: mypy
# entry: mypy dataramp/ --strict-equality
# language: system
# always_run: true
# pass_filenames: false