-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
122 lines (105 loc) · 2.34 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[tool.black]
line-length = 120
target_version = ['py310']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.pytest_cache
| \.mypy_cache
| \.venv
| venv
| _build
| build
| dist
| pynguin.egg-info
)/
)
'''
[tool.isort]
py_version = 310
profile = "black"
combine_as_imports = true
lines_between_types = 1
lines_after_imports = 2
src_paths = [ "ai21", "tests"]
[tool.coverage.run]
branch = true
source = ["ai21", "tests"]
omit = ["tests/fixtures/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:"
]
[tool.poetry]
name = "ai21"
version = "3.0.1"
description = ""
authors = ["AI21 Labs"]
readme = "README.md"
packages = [
{ include = "ai21" }
]
[tool.poetry.dependencies]
python = "^3.8"
ai21-tokenizer = ">=0.12.0,<1.0.0"
boto3 = { version = "^1.28.82", optional = true }
typing-extensions = "^4.9.0"
httpx = "^0.27.0"
tenacity = "^8.3.0"
google-auth = { version = "^2.31.0", optional = true }
pydantic = ">=1.9.0,<3.0.0"
[tool.poetry.group.dev.dependencies]
black = "*"
invoke = "*"
isort = "*"
mypy = "*"
safety = "*"
ruff = "*"
python-semantic-release = "^8.5.0"
pytest = "^7.4.3"
pytest-mock = "^3.12.0"
pytest-asyncio = "^0.21.1"
[tool.poetry.extras]
AWS = ["boto3"]
Vertex = ["google-auth"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.coverage.html]
directory = "cov_html"
[tool.coverage.xml]
directory = "coverage.xml"
[tool.commitizen]
name = "cz_customize"
[tool.commitizen.customize]
schema_pattern = "(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump):(\\s.*)"
[tool.semantic_release]
version_toml = [
"pyproject.toml:tool.poetry.version"
]
version_variables = [
"ai21/version.py:VERSION"
]
match = "(main)"
build_command = "pip install poetry && poetry build"
version_source = "tag"
commit_version_number = true
commit_message = "chore(release): v{version} [skip ci]"
[tool.semantic_release.branches.main]
match = "(main)"
[tool.semantic_release.branches."Release Candidates"]
match = "(rc_*)"
prerelease_token = "rc"
prerelease = true
[tool.ruff]
line-length = 120