-
Notifications
You must be signed in to change notification settings - Fork 69
/
pyproject.toml
75 lines (61 loc) · 1.61 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
[tool.poetry]
name = "mistral_common"
version = "1.5.1"
description = ""
authors = ["bam4d <[email protected]>"]
readme = "README.md"
packages = [{ include = "mistral_common", from = "src" }]
[tool.ruff]
lint.select = ["E", "F", "W", "Q", "I"]
lint.ignore = ["E203"]
lint.fixable = ["ALL"]
lint.unfixable = []
line-length = 120
exclude = ["docs", "build"]
[tool.mypy]
disallow_untyped_defs = true
show_error_codes = true
no_implicit_optional = true
warn_return_any = true
warn_unused_ignores = true
exclude = ["docs", "tools", "build"]
[[tool.mypy.overrides]]
module = ["sentencepiece.*", "cv2", "cv2.*"]
ignore_missing_imports = true
[tool.poetry.dependencies]
python = "^3.8.10"
pydantic = "^2.6.1"
jsonschema = "^4.21.1"
sentencepiece = "0.2.0"
typing-extensions = "^4.11.0"
tiktoken = "^0.7.0"
pillow = "^10.3.0"
requests = "^2.0.0"
numpy = [
{ version = ">=1.22,<1.25", python = "<3.9" },
{ version = ">=1.25", python = ">=3.9" },
]
opencv-python-headless = { version = "^4.0.0", optional = true }
[tool.poetry.extras]
opencv = ["opencv-python-headless"]
[tool.poetry.group.dev.dependencies]
types-jsonschema = "4.21.0.20240118"
types-protobuf = "4.24.0.20240129"
mypy-protobuf = "^3.5.0"
pytest = "7.4.4"
ruff = "^0.2.2"
mypy = "^1.8.0"
pytest-cov = "^4.1.0"
diff-cover = "^8.0.3"
types-Pillow = "^10.2.0"
types-requests = "^2.32"
coverage = { extras = ["toml"], version = "^7.4.4" }
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = ["./tests"]
[tool.coverage.run]
omit = ["tests", "*src/mistral_common/data*"]
[tool.coverage.report]
skip_covered = true