-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.pre-commit-config.yaml
77 lines (70 loc) · 1.83 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args: [
"--remove-all-unused-imports",
"--in-place",
]
language_version: python3.11
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
args: ["--fix"]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
args: ["--profile=black"]
language_version: python3.11
- repo: https://github.com/psf/black
rev: 24.4.0
hooks:
- id: black
language_version: python3.11
- repo: https://github.com/pycqa/flake8
rev: '4.0.1' # Assuming this is the desired version
hooks:
- id: flake8
language_version: python3.11
args: [
"--count",
"--max-line-length=100", # Match pylint's default
"--show-source",
"--statistics",
]
- repo: https://github.com/pycqa/pylint
rev: v3.1.0
hooks:
- id: pylint
entry: pylint
args: [
"--max-args=6",
]
language_version: python3.11
additional_dependencies: [
"docx2txt==0.8",
"faiss-cpu==1.8.0",
"langchain==0.1.13",
"langchain-community==0.0.29",
"langchain-openai==0.0.8",
"openai==1.14.0",
"pypdf==4.2.0",
"pytest==8.1.1",
"streamlit==1.33.0",
]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
hooks:
- id: mypy
entry: mypy
verbose: true
language_version: python3.11