qmaruf commited on
Commit
af8427f
1 Parent(s): 9a18a76

pre-commit config added

Browse files
Files changed (2) hide show
  1. .pre-commit-config.yaml +43 -0
  2. requirements.txt +1 -0
.pre-commit-config.yaml ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v4.5.0
4
+ hooks:
5
+ - id: trailing-whitespace
6
+ - id: end-of-file-fixer
7
+ - id: check-yaml
8
+ - id: debug-statements
9
+ - id: double-quote-string-fixer
10
+ - id: name-tests-test
11
+ - id: requirements-txt-fixer
12
+ - repo: https://github.com/asottile/setup-cfg-fmt
13
+ rev: v2.5.0
14
+ hooks:
15
+ - id: setup-cfg-fmt
16
+ - repo: https://github.com/asottile/reorder-python-imports
17
+ rev: v3.12.0
18
+ hooks:
19
+ - id: reorder-python-imports
20
+ exclude: ^(pre_commit/resources/|testing/resources/python3_hooks_repo/)
21
+ - repo: https://github.com/asottile/add-trailing-comma
22
+ rev: v3.1.0
23
+ hooks:
24
+ - id: add-trailing-comma
25
+ - repo: https://github.com/asottile/pyupgrade
26
+ rev: v3.15.0
27
+ hooks:
28
+ - id: pyupgrade
29
+ args: [--py38-plus]
30
+ - repo: https://github.com/hhatto/autopep8
31
+ rev: v2.0.4
32
+ hooks:
33
+ - id: autopep8
34
+ - repo: https://github.com/PyCQA/flake8
35
+ rev: 6.1.0
36
+ hooks:
37
+ - id: flake8
38
+ - repo: https://github.com/pre-commit/mirrors-mypy
39
+ rev: v1.6.0
40
+ hooks:
41
+ - id: mypy
42
+ additional_dependencies: [types-all]
43
+ exclude: ^testing/resources/
requirements.txt CHANGED
@@ -1,5 +1,6 @@
1
  langchain==0.0.273
2
  loguru==0.7.0
3
  openai==0.27.9
 
4
  python-dotenv==1.0.0
5
  streamlit==1.27.2
 
1
  langchain==0.0.273
2
  loguru==0.7.0
3
  openai==0.27.9
4
+ pre-commit==3.5.0
5
  python-dotenv==1.0.0
6
  streamlit==1.27.2