-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (123 loc) · 3.32 KB
/
pyproject.toml
File metadata and controls
138 lines (123 loc) · 3.32 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[project]
name = "claude-code-toolbox"
version = "5.15.1"
description = "Claude Code Toolbox — automated installers and environment configuration framework for Claude Code with one-line setup across Windows, macOS, and Linux."
readme = "README.md"
authors = [{ name = "Aleksandr Filippov", email = "alexfeel@protonmail.com" }]
requires-python = ">=3.12,<3.13"
dependencies = [
"pyyaml>=6.0.2",
"pydantic>=2.10.3",
]
[dependency-groups]
dev = [
"pre-commit>=4.0.1",
"pytest>=8.3.5",
"pytest-asyncio>=0.25.0",
"pytest-cov>=6.0.0",
"pytest-mock>=3.14.0",
"pytest-timeout>=2.3.1",
"types-PyYAML>=6.0.12",
"ty>=0.0.28",
]
[tool.ruff]
# Enable preview features
preview = true
# General settings
src = ["scripts"]
target-version = "py312"
line-length = 127
extend-include = ["tests/**/*.py"]
[tool.ruff.lint]
# Ignore specific rules
ignore = ["B008", "PIE807"] # B008: lambda in default_factory, PIE807: Prefer list over lambda
# Enable rule groups
select = [
"FAST", # FastAPI
"YTT", # flake8-2020
"ANN", # flake8-annotations
"ASYNC", # flake8-async
"B", # flake8-bugbear
"COM", # flake8-commas
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"T10", # flake8-debugger
"EXE", # flake8-executable
"FIX", # flake8-fix-me
"FA", # flake8-future-annotations
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"LOG", # flake8-logging
"PIE", # flake8-pie
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SIM", # flake8-simplify
"SLOT", # flake8-slots
"TID", # flake8-tidy-imports
# "TC", # flake8-type-checking
"ARG", # flake8-unused-arguments
"FLY", # flynt
"I", # isort
"NPY", # NumPy-specific rules
"PD", # pandas-vet
"N", # pep8-naming
"PERF", # Perflint
"E", "W", # pycodestyle
"DOC", # pydoclint
"F", # Pyflakes
"PGH", # pygrep-hooks
"UP", # pyupgrade
"FURB", # refurb
]
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
ignore-fully-untyped = true
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "single"
[tool.ruff.lint.flake8-type-checking]
quote-annotations = true
strict = false
[tool.ruff.lint.isort]
known-first-party = ["scripts"]
force-single-line = true
[tool.ruff.lint.pydoclint]
ignore-one-line-docstrings = true
[tool.ty.environment]
root = ["./scripts"]
[tool.ty.rules]
unresolved-import = "ignore"
[tool.ty.src]
exclude = ["tests"]
[tool.pytest.ini_options]
asyncio_mode = "strict"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
norecursedirs = ["scripts"]
pythonpath = ["."]
timeout = 120
filterwarnings = [
"ignore:coroutine 'AsyncMockMixin._execute_mock_call' was never awaited:RuntimeWarning",
]
markers = [
"allow_real_home: Allow test to write to real home directory (bypasses safety guard)",
]
[tool.coverage.run]
relative_files = true
source = ["scripts"]
omit = ["*/tests/*", "*/__pycache__/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"pass",
"except ImportError:",
]