-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (104 loc) · 2.88 KB
/
pyproject.toml
File metadata and controls
117 lines (104 loc) · 2.88 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[project]
name = "desto"
dynamic = ["version"]
description = "tmux session manager"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"ipython>=9.2.0",
"loguru>=0.7.3",
"nicegui>=2.16.1",
"pre-commit>=4.2.0",
"psutil>=7.0.0",
"pytest>=8.3.5",
"pytest-xdist>=3.2.0",
"twine>=6.1.0",
"typer>=0.12.0",
"rich>=13.0.0",
"redis>=4.0.0",
"pytest-instafail>=0.5.0",
]
[project.optional-dependencies]
dev = [
"ruff>=0.1.0",
"requests>=2.31.0",
]
docs = [
"mkdocs>=1.6.1",
"mkdocs-material>=9.6.19",
"mkdocstrings>=0.30.0",
"mkdocstrings-python>=1.18.2",
"pymdown-extensions>=10.16.1",
"mkdocs-include-markdown-plugin>=6.0.0",
"mkdocs-htmlproofer-plugin>=1.2.1",
"loguru>=0.7.3", # For docs generation scripts
]
[project.scripts]
desto = "desto.app.dashboard:main"
desto-cli = "desto.cli.cli:cli_main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/desto/_version.py"
[tool.ruff]
line-length = 250 # Increased to handle long UI strings and f-strings
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"D", # pydocstyle (docstring conventions)
]
ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__
"D205", # 1 blank line required between summary line and description
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
# Allow all docstring issues in tests and mock classes
"tests/*" = ["D"]
"src/desto/cli/*" = ["D"] # CLI modules often have mock classes
"src/desto/__init__.py" = ["D"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[dependency-groups]
docs = [
"mkdocs>=1.6.1",
"mkdocs-material>=9.6.19",
"mkdocstrings>=0.30.0",
"mkdocstrings-python>=1.18.2",
"pymdown-extensions>=10.16.1",
"mkdocs-include-markdown-plugin>=6.0.0",
"mkdocs-htmlproofer-plugin>=1.2.1",
"loguru>=0.7.3",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"-ra"
]
# Exclude non-test directories completely
norecursedirs = ["src", "scripts", "docs", ".git", ".venv", "build", "dist"]
# Define markers for test categorization
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"docker: marks tests that require Docker",
"integration: marks integration tests",
]