Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (76 loc) · 1.9 KB
/
Copy pathpyproject.toml
File metadata and controls
85 lines (76 loc) · 1.9 KB
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
78
79
80
81
82
83
84
85
# Copyright 2023 Lei Zhang
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[build-system]
requires = ["uv_build>=0.10.11,<0.11"]
build-backend = "uv_build"
[project]
name = "gitlab-bot"
version = "1.2.1"
description = ""
authors = [
{ name = "Lei Zhang", email = "coolbeevip@gmail.com" },
]
requires-python = ">=3.9,<4.0"
dependencies = [
"aiohttp>=3.11,<4.0",
"gidgetlab[aiohttp]>=1.1.0,<2.0.0",
"setuptools<81",
"langchain==0.3.6",
"langchain-openai==0.2.5",
"langchain-google-genai==2.0.4",
"python-dotenv==1.0.1",
"urllib3<2",
]
[dependency-groups]
dev = [
"ruff>=0.7,<0.8",
"pytest==7.4.3",
"coverage==7.2.7",
"pytest-cov==4.1.0",
]
[tool.uv]
required-version = "==0.10.11"
[tool.uv.build-backend]
module-name = "src"
module-root = ""
source-exclude = [".DS_Store"]
[tool.ruff]
line-length = 120
fix = true
target-version = "py39"
[tool.ruff.format]
quote-style = "preserve"
[tool.ruff.lint]
extend-select = [
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PGH", # pygrep-hooks
"RUF", # ruff
"E",
]
[tool.coverage.report]
exclude_also = [
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
"except Exception as e:",
]