AAhad commited on
Commit
b03fdb4
·
verified ·
1 Parent(s): f553dd3

dependencies added

Browse files
Files changed (3) hide show
  1. poetry.lock +0 -0
  2. pre-commit-config.yaml +51 -0
  3. pyproject.toml +62 -0
poetry.lock ADDED
The diff for this file is too large to render. See raw diff
 
pre-commit-config.yaml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v5.0.0
4
+ hooks:
5
+ - id: check-added-large-files
6
+ - id: check-ast
7
+ - id: check-case-conflict
8
+ - id: check-json
9
+ - id: check-merge-conflict
10
+ - id: check-toml
11
+ - id: end-of-file-fixer
12
+ - repo: https://github.com/astral-sh/ruff-pre-commit
13
+ # Ruff version.
14
+ rev: v0.8.6
15
+ hooks:
16
+ - id: ruff
17
+ - repo: https://github.com/pycqa/isort
18
+ rev: 5.13.2
19
+ hooks:
20
+ - id: isort
21
+ args: ["--profile", "black"]
22
+ - repo: https://github.com/asottile/pyupgrade
23
+ rev: v3.19.1
24
+ hooks:
25
+ - id: pyupgrade
26
+ args: ["--py310-plus"]
27
+ - repo: https://github.com/psf/black
28
+ rev: 24.10.0
29
+ hooks:
30
+ - id: black
31
+ args:
32
+ - --line-length=120
33
+ - repo: https://github.com/jorisroovers/gitlint
34
+ rev: v0.19.1
35
+ hooks:
36
+ - id: gitlint
37
+ name: gitlint
38
+ language: python
39
+ entry: gitlint
40
+ args: [--staged, --msg-filename]
41
+ stages: [commit-msg]
42
+ - repo: https://github.com/python-poetry/poetry
43
+ rev: '1.8.0'
44
+ hooks:
45
+ - id: poetry-check
46
+ - id: poetry-lock
47
+ args: [--no-update]
48
+ language_version: "3.10"
49
+ - id: poetry-export
50
+ name: poetry export for base requirements
51
+ args: [-f, requirements.txt, -o, requirements.txt, -n, --only=main, --without-hashes]
pyproject.toml ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [tool.poetry]
2
+ name = "granite-3.1-8b-instruct"
3
+ version = "0.1.0"
4
+ description = "A demo of the IBM Granite 3.1 8b instruct model"
5
+ authors = [
6
+ "Abdul Ahad <[email protected]>",
7
+ "James Sutton <[email protected]>",
8
+ "Graham White <[email protected]>",
9
+ "Michael Desmond <[email protected]>",
10
+ ]
11
+ license = "Apache-2.0"
12
+ readme = "README.md"
13
+ package-mode = false
14
+
15
+ [tool.poetry.dependencies]
16
+ python = ">=3.10,<3.11"
17
+ gradio = "5.12.0"
18
+ torch = "2.4.0"
19
+ spaces = "0.30.4"
20
+ transformers = "^4.47.1"
21
+ accelerate = "^1.2.1"
22
+
23
+
24
+ [tool.poetry.group.dev.dependencies]
25
+ pre-commit = "^4.0.1"
26
+ git-lint = "^0.1.2"
27
+ ruff = "^0.8.3"
28
+ pytest = "^8.3.4"
29
+
30
+
31
+ [build-system]
32
+ requires = ["poetry-core"]
33
+ build-backend = "poetry.core.masonry.api"
34
+
35
+
36
+ [tool.ruff]
37
+ select = [
38
+ "E", # pycodestyle
39
+ "F", # pyflakes
40
+ "UP", # pyupgrade
41
+ "D", # pydocstyle
42
+ "I", # isort
43
+ "B", # bugbear
44
+ "ANN", # annotations
45
+ "N", # pep8-naming
46
+ "C4", # Comprehensions
47
+ "DTZ", # DatetimeZ
48
+ "Q", # Quotes
49
+ "SIM", # Simplify
50
+ "RUF", # Ruff
51
+ ]
52
+ ignore = ["D203", "D213"]
53
+ fixable = ["ALL"]
54
+ unfixable = []
55
+ line-length = 120
56
+
57
+
58
+ [tool.black]
59
+ line-length = 120
60
+
61
+ [tool.ruff.lint.pydocstyle]
62
+ convention = "google"