regraded01 commited on
Commit
7cac591
·
1 Parent(s): 2b7a8a5

build: include ruff formater and pre-commit for automatic code checks

Browse files
Files changed (3) hide show
  1. .pre-commit-config.yaml +18 -0
  2. poetry.lock +0 -0
  3. pyproject.toml +6 -0
.pre-commit-config.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v3.2.0
4
+ hooks:
5
+ - id: trailing-whitespace
6
+ - id: end-of-file-fixer
7
+ - id: check-yaml
8
+ - id: check-added-large-files
9
+
10
+ - repo: https://github.com/astral-sh/ruff-pre-commit
11
+ # Ruff version.
12
+ rev: v0.4.8
13
+ hooks:
14
+ # Run the linter.
15
+ - id: ruff
16
+ args: [ --fix ]
17
+ # Run the formatter.
18
+ - id: ruff-format
poetry.lock CHANGED
The diff for this file is too large to render. See raw diff
 
pyproject.toml CHANGED
@@ -13,10 +13,16 @@ python = ">=3.9,<3.9.7 || >3.9.7,<4.0"
13
  streamlit = "^1.35.0"
14
  pypdf2 = "^3.0.1"
15
  pyyaml = "^6.0.1"
 
 
 
 
16
 
17
 
18
  [tool.poetry.group.dev.dependencies]
19
  ipykernel = "^6.29.4"
 
 
20
 
21
  [build-system]
22
  requires = ["poetry-core"]
 
13
  streamlit = "^1.35.0"
14
  pypdf2 = "^3.0.1"
15
  pyyaml = "^6.0.1"
16
+ transformers = "^4.41.2"
17
+ langchain = "^0.2.3"
18
+ langchain-openai = "^0.1.8"
19
+ langchain-community = "^0.2.4"
20
 
21
 
22
  [tool.poetry.group.dev.dependencies]
23
  ipykernel = "^6.29.4"
24
+ pre-commit = "^3.7.1"
25
+ ruff = "^0.4.8"
26
 
27
  [build-system]
28
  requires = ["poetry-core"]