-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (79 loc) · 1.78 KB
/
pyproject.toml
File metadata and controls
92 lines (79 loc) · 1.78 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "swiss-ai-model-launch"
version = "26.5.0a1"
description = "Swiss AI Model Launch"
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
requires-python = ">=3.10,<=3.14"
dependencies = [
"fastmcp>=3.2.3",
"httpx>=0.28",
"keyring>=25.0",
"keyrings.alt>=5.0",
"pydantic>=2.0",
"pyfirecrest>=3.7.1",
"pyyaml>=6.0",
"questionary>=2.0",
"textual>=8.1",
]
[project.scripts]
sml = "swiss_ai_model_launch.cli:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
swiss_ai_model_launch = ["assets/**"]
[tool.isort]
profile = "black"
line_length = 120
[tool.ruff]
src = ["src"]
line-length = 120
exclude = ["legacy"] # TODO
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"N", # naming conventions
"B", # bugbear
"UP", # pyupgrade
"S", # security (bandit)
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101"]
[tool.mypy]
files = ["src"]
strict = true
python_version = "3.12"
plugins = ["pydantic.mypy"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
markers = [
"lightweight: lightweight integration tests (triggered automatically)",
"std: full models.json matrix (triggered on label)",
"comprehensive: std + examples/cli/*.sh scripts (triggered on label)",
]
[tool.coverage.run]
source = ["src"]
[tool.coverage.report]
show_missing = true
fail_under = 0 # TODO
[dependency-groups]
dev = [
"ruff>=0.15",
"mypy>=1.0",
"pytest>=9.0",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0",
"pytest-xdist>=3.8.0",
"pre-commit>=4.6.0",
"shellcheck-py>=0.9",
"hadolint-py>=2.12",
"types-PyYAML>=6.0",
]
docs = ["mkdocs-material>=9.5", "mkdocs-autorefs>=1.0"]