Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
54 lines (45 loc) · 1.69 KB
/
Copy pathpyproject.toml
File metadata and controls
54 lines (45 loc) · 1.69 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
# Copyright 2025-Present Couchbase, Inc.
#
# Use of this software is governed by the Business Source License included
# in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
# in that file, in accordance with the Business Source License, use of this
# software will be governed by the Apache License, Version 2.0, included in
# the file licenses/APL2.txt.
[project] # this isn't a real project, but we need this to make the tools work
name = "sgcollect_info"
version = "0.0.1"
requires-python = ">=3.13,<3.14" # miniconda pyinstaller is pinned to python 3.13
[tool.mypy]
files = ["tools/sgcollect_info", "tools-tests/*.py", "tools/*.py"]
check_untyped_defs = false # candidate for removal in the future
disable_error_code = [
"type-arg", # candidate for removal in the future
]
disallow_incomplete_defs = false # candidate for removal in the future
disallow_untyped_calls = false # candidate for removal in the future
disallow_untyped_defs = false # candidate for removal in the future
strict = true # mypy has stricter warnings
warn_return_any = false # candidate for removal in the future
warn_unused_configs = true # validates this file
warn_unreachable = true # candidate for removal in the future
[tool.pyright]
extraPaths = ["tools"]
[tool.ruff]
extend-include = ["tools/sgcollect_info"]
[tool.ruff.lint]
extend-select = ["I", "B006"] # isort, mutable default argument
# test only dependencies
[dependency-groups]
dev = [
"pytest>=9.1.1",
"pytest-httpserver>=1.1.5",
"ruff>=0.16.9",
"trustme>=1.2.1",
"ty==0.0.84", # pre-release, pin exactly
]
[tool.ty.environment]
extra-paths = ["tools"]
[tool.ty.src]
include = ["tools", "tools-tests"]
[tool.ty.rules]
unresolved-import = "error"