-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (82 loc) · 1.85 KB
/
Copy pathpyproject.toml
File metadata and controls
95 lines (82 loc) · 1.85 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
[project]
name = "mosaic-mind"
version = "0.0.1-alpha.3"
description = "Add your description here"
readme = "README.md"
license = { text = "MIT" }
authors = [
{ name = "Tarek Sanger", email = "tarek.sanger@me.com" }
]
requires-python = ">=3.9"
dependencies = [
"deepmerge>=2.0",
"google-genai>=1.20.0",
"httpx>=0.28.1",
"numpy>=2.0.2",
"openai>=1.97.1",
"pydantic>=2.11.7",
"tenacity>=9.1.2",
]
[project.optional-dependencies]
sentence-transformers = ["sentence-transformers>=2.2.0"]
all = ["sentence-transformers>=2.2.0"]
[dependency-groups]
dev = [
"ipykernel>=6.30.0",
"ipython-ngql>=0.14.3",
"jupyter>=1.1.1",
"mypy>=1.17.0",
"pre-commit>=4.2.0",
"pyright>=1.1.403",
"pytest>=8.4.1",
"pytest-asyncio>=1.1.0",
"ruff>=0.12.5",
]
[tool.hatch.build.targets.wheel]
packages = ["src/mosaic"]
[tool.hatch.build]
sources = ["src"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# Ruff configuration
[tool.ruff]
target-version = "py310"
line-length = 200
exclude = [
".venv",
"venv",
"__pypackages__",
"build",
"**/migrations",
"**/mocks/**",
"settings.py",
"__pycache__",
".tox",
"*.pyc",
".env",
"reports",
"dist",
"data",
"*.ipynb"
]
[tool.ruff.lint]
select = ["E", "F", "I"]
extend-select = ["C90"]
fixable = ["ALL"]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
force-single-line = false
known-first-party = ["mosaic"]
combine-as-imports = true
force-sort-within-sections = true
order-by-type = false
section-order = ["future", "standard-library", "first-party", "local-folder", "third-party"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403"]
"**/{tests,docs,tools}/*" = ["E402"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"