-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpyproject.toml
More file actions
152 lines (131 loc) · 4.04 KB
/
pyproject.toml
File metadata and controls
152 lines (131 loc) · 4.04 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "mellea-contribs"
version = "0.0.1"
authors = [
{ name = "Nathan Fulton", email = "nathan@ibm.com" },
# add your name here!
]
description = "mellea-contribs is a library for incubating generative programming libraries"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
dependencies = [
"mellea[litellm]",
"rapidfuzz>=3.14.3",
"eyecite",
"citeurl",
"playwright",
"markdown",
]
[project.optional-dependencies]
robustness = [
"benchdrift",
]
[dependency-groups]
# Use these like:
# pip install -e . --group dev
dev = [
"isort>=6.0.0",
"pre-commit>=4.2.0",
"pylint>=3.3.4",
"ruff>=0.11.6",
"pdm>=2.24.0",
"pytest",
"pytest-asyncio",
"mypy>=1.17.0",
"python-semantic-release~=7.32",
]
notebook = [
"ipykernel>=6.29.5",
"ipython>=8.36.0",
"jupyter>=1.1.1",
]
docs = [
"sphinx_rtd_theme",
"sphinx-autodoc-typehints",
"sphinx_mdinclude",
]
[tool.ruff]
target-version = "py310"
respect-gitignore = true
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint]
select = [
# "B", # flake8-bugbear
"C", # flake8-comprehensions
"C9", # mccabe
"D", # flake8-docstrings
"E", # pycodestyle errors (default)
"F", # pyflakes (default)
"I", # isort
"PD", # pandas-vet
"PIE", # pie
# "PTH", # pathlib
"Q", # flake8-quotes
# "RET", # return
"RUF", # Enable all ruff-specific checks
# "SIM", # simplify
"S307", # eval
# "T20", # (disallow print statements) keep debugging statements out of the codebase
"W", # pycodestyle warnings
"ASYNC", # async
"UP", # pyupgrade
]
ignore = [
"RUF001", # ambiguous unicode characters (these occur in examples).
"C408", # Unnecessary `dict()` call (rewrite as a literal)
"E501", # Line too long, handled by ruff formatter
# "D107", # "Missing docstring in __init__",
"F401", # imported but unused; consider using `importlib.util.find_spec` to test for "
"F811", # "redefinition of the same function"
"PL", # Pylint
"RUF012", # Mutable Class Attributes
# "UP006", # List vs list, etc
# "UP007", # Option and Union
# "UP035", # `typing.Set` is deprecated, use `set` instead"
"PD901", # Avoid using the generic variable name `df` for DataFrames
"C901", # Complexity warnings
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.ruff.lint.isort]
combine-as-imports = true
split-on-trailing-comma = false
[tool.codespell]
ignore-words-list = 'mellea,hashi,noo,Asai,asai,nd,mot,rouge,Rouge'
check-filenames = true
check-hidden = false
regex = "(?<![a-z])[a-z'`]+|[A-Z][a-z'`]*|[a-z]+'[a-z]*|[a-z]+(?=[_-])|[a-z]+(?=[A-Z])|\\d+"
skip = 'requirements.txt,uv.lock,CHANGELOG.md'
[tool.mypy]
disable_error_code = ["empty-body", "import-untyped"]
python_version = "3.10"
[tool.pytest.ini_options]
markers = [
"qualitative: Marks the test as needing an exact output from an LLM; set by an ENV variable for CICD. All tests marked with this will xfail in CI/CD"
]
asyncio_mode = "auto" # Don't require explicitly marking async tests.
[tool.semantic_release]
# for default values check:
# https://github.com/python-semantic-release/python-semantic-release/blob/v7.32.2/semantic_release/defaults.cfg
version_source = "tag_only"
branch = "main"
# configure types which should trigger minor and patch version bumps respectively
# (note that they must be a subset of the configured allowed types):
parser_angular_allowed_types = "build,chore,ci,docs,feat,fix,perf,style,refactor,test,release"
parser_angular_minor_types = "release"
parser_angular_patch_types = "fix,perf,feat"
# [tool.uv.workspace]
# members = ["integrations/mellea-integration-core", "integrations/langchain", "integrations/crewai"]
[tool.uv.sources]
benchdrift = { git = "https://github.com/IBM/BenchDrift.git", rev = "95db1c95b6abbc3b9f9bc177f6a7933c555c7175" }