-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
102 lines (91 loc) · 2.26 KB
/
pyproject.toml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[project]
name = "pycomet-cli"
version = "0.1.2"
description = "AI-powered Git commit messages"
authors = [
{name = "Jay W", email = "git.jaydoubleu@gmail.com"},
]
dependencies = [
"click>=8.0.0",
"litellm==1.59.10",
"pyyaml>=6.0.0",
"python-dotenv>=1.0.0"
]
requires-python = ">=3.8"
readme = "README.md"
license = {text = "MIT"}
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.scripts]
pycomet = "pycomet.cli:cli"
pycomet-cli = "pycomet.cli:cli"
[project.optional-dependencies]
test = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"python-dotenv>=1.0.0"
]
dev = [
"black>=24.0.0",
"ruff>=0.3.0"
]
tests = [
"pytest>=7.4.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0"
]
[tool.hatch.build.targets.wheel]
packages = ["src/pycomet"]
package-name = "pycomet"
include = ["py.typed"]
[tool.black]
line-length = 88
target-version = ["py38"]
[tool.ruff]
target-version = "py38"
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-vv --capture=no"
markers = [
"verbose_only: mark test that shows detailed LLM output",
"ai_models: mark tests that interact with AI model APIs"
]
filterwarnings = [
# Ignore all Pydantic V2 warnings
"ignore::UserWarning:pydantic.*:",
"ignore::DeprecationWarning:pydantic.*:",
"ignore:.*PydanticDeprecatedSince20.*:UserWarning",
# Ignore litellm deprecation warnings
"ignore:open_text is deprecated.*:DeprecationWarning:litellm.*:",
"ignore:'cgi' is deprecated.*:DeprecationWarning:litellm.*:",
# Ignore httpx content warning
"ignore:Use 'content=<...>' to upload raw bytes/text content.:DeprecationWarning:httpx.*:",
"ignore:cannot collect test class.*__init__ constructor:pytest.PytestCollectionWarning",
]
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
check_untyped_defs = true
[dependency-groups]
dev = [
"black>=24.8.0",
"mypy>=1.14.1",
"pre-commit>=3.5.0",
"pytest>=8.3.4",
"pytest-cov>=5.0.0",
"ruff>=0.9.4",
"types-pyyaml>=6.0.12.20241230",
]