-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
74 lines (67 loc) · 1.89 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "uniprompt"
version = "0.1.0"
authors = [
{ name="Gautam Jajoo", email="[email protected]" },
{ name="Gurusha Juneja" },
{ name="Anush Kini"},
{ name="Amit Sharma", email="[email protected]" },
{ name="Nagarajan Natarajan", email="[email protected]" },
]
description = "Python implementation of UniPrompt."
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
dependencies = [
"openai>=1.3.0",
"tqdm>=4.66.0",
"PyYAML>=6.0",
"datasets>=2.20.0",
"scikit-learn",
"ruamel.yaml>=0.17.21",
]
[project.urls]
Homepage = "https://aka.ms/UniPrompt"
Code = "https://github.com/microsoft/UniPrompt"
[project.optional-dependencies]
dev = ["ruff ~= 0.4"]
[tool.setuptools.package-data]
uniprompt = ["metaprompts/*.yaml"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
extend-select = [
"ANN", # flake8-annotations
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"T", # flake8-debugger, flake8-print
"Q", # flake8-quotes
"SIM", # flake8-simplify
"RET503", # implicit-return
"I", # isort
"C90", # mccabe
"N", # pep8-naming
"E", # pycodestyle
"W", # pycodestyle warnings
"F", # Pyflakes
"UP", # pyupgrade
]
ignore = [
"ANN101", # Missing type annotation for `self` in method
"ANN204", # Missing return type annotation for special method
"D105", # Missing docstring in magic method
"UP036", # Version block is outdated for minimum Python version
]
mccabe = { max-complexity = 14 }
pydocstyle = { convention = "google" }
[tool.ruff.lint.per-file-ignores]
"**/examples/*.py" = [
"T201", # `print` used
]