-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
86 lines (77 loc) · 1.68 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
[project]
name = "oai_utils"
description = "OpenAI Python Utils"
readme = "README.md"
requires-python = ">=3.10"
license = {file = "LICENSE"}
keywords = ["openai"]
authors = [
{name = "Rafal Wojdyla", email = "[email protected]"},
]
maintainers = []
classifiers = [
"Programming Language :: Python"
]
dependencies = [
"joblib < 1.4",
"numpy < 2",
"openai < 1",
"tenacity < 9",
"tiktoken < 1",
"tqdm < 5",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pre-commit < 4",
"pytest < 8",
]
[project.urls]
repository = "https://github.com/related-sciences/oai_utils"
[build-system]
requires = ["setuptools >= 45", "setuptools_scm[toml] >= 6.2"]
[tool.setuptools_scm]
[tool.ruff]
target-version = "py310"
line-length = 88
ignore = [
"E402", # ignore import-at-top-of-file violations
"E501", # ignore line-length violations
"F811", # ignore redefinition of a function
"B019", # ignore functools cache/lru_cache
"UP030", # allow explicit positional string formatting
]
select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"C90", # mccabe
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"W", # pycode warnings
]
[tool.ruff.mccabe]
max-complexity = 20
[tool.mypy]
python_version = "3.10"
strict = true
pretty = true
show_error_context = true
[[tool.mypy.overrides]]
module = [
"*.tests.*",
"conftest",
]
disallow_incomplete_defs = false
disallow_untyped_defs = false
disallow_untyped_decorators = false
disallow_untyped_calls = false
[[tool.mypy.overrides]]
module = [
"openai.*",
"tenacity.*",
"tiktoken.*",
"tqdm.*",
]
ignore_missing_imports = true