-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
70 lines (60 loc) · 1.58 KB
/
pyproject.toml
File metadata and controls
70 lines (60 loc) · 1.58 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
[project]
name = "boutiques"
version = "0.1.0.dev0"
description = "Boutiques descriptor toolkit: validate, generate examples, simulate, and launch."
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
authors = [
{ name = "Boutiques contributors" },
]
dependencies = [
"pydantic>=2.11",
"typer>=0.12",
"rich>=13",
]
[project.scripts]
bosh = "boutiques.cli:app"
[project.urls]
# Pre-merge home; will flip to boutiques/boutiques once upstreamed.
Homepage = "https://github.com/childmindresearch/boutiques_next"
[build-system]
requires = ["uv_build>=0.5,<1.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "boutiques"
module-root = "src"
[dependency-groups]
dev = [
"pytest>=8",
"pytest-cov>=6",
"ruff>=0.8",
"mypy>=1.13",
"pre-commit>=4",
]
docs = [
"mkdocs-material>=9",
"mkdocstrings[python]>=0.27",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
[tool.ruff]
line-length = 100
target-version = "py311"
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP", "ANN", "RUF"]
# ANN401 -- Any in helpers walking heterogeneous Pydantic inputs is unavoidable.
# ANN204 -- Pydantic models don't need __init__ annotations.
ignore = ["ANN401", "ANN204"]
[tool.ruff.lint.per-file-ignores]
# Tests can be loose about annotations and line length.
"tests/**/*.py" = ["ANN", "E501"]
# Typer's idiomatic CLI parameter declaration uses function calls in argument defaults
# (typer.Argument / typer.Option). B008 doesn't apply here.
"src/boutiques/cli/**/*.py" = ["B008"]
[tool.mypy]
python_version = "3.11"
strict = true
files = ["src"]