-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (96 loc) · 2.5 KB
/
pyproject.toml
File metadata and controls
108 lines (96 loc) · 2.5 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
[build-system]
build-backend = "maturin"
requires = [ "maturin>=1.0,<2.0" ]
[project]
name = "yamltrip"
version = "0.5.0"
description = "A round-tripping YAML library for Python"
readme = "README.md"
authors = [ { name = "Nathan McDougall", email = "nathan.j.mcdougall@gmail.com" } ]
requires-python = ">=3.10"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"typing-extensions>=4.4.0",
]
[dependency-groups]
dev = [
"basedpyright>=1.39.6",
"codespell>=2.4.2",
"deptry>=0.25.1",
"import-linter>=2.11",
"maturin>=1.13.3",
"prek>=0.3.13",
"pyproject-fmt>=2.21.2",
"pytest>=9.0.3",
"ruff>=0.15.12",
"tomli>=2.4.1",
"ty>=0.0.35",
"vulture>=2.16",
]
test = [
"coverage[toml]>=7.14.0",
"mypy>=1.16.0",
]
[tool.maturin]
module-name = "yamltrip._core"
python-packages = [ "yamltrip" ]
python-source = "src"
[tool.uv]
default-groups = [ "test", "dev" ]
link-mode = "symlink"
cache-keys = [ { file = "pyproject.toml" }, { file = "src/**/*.rs" }, { file = "Cargo.toml" }, { file = "Cargo.lock" } ]
[tool.codespell]
ignore-regex = [ "[A-Za-z0-9+/]{100,}" ]
ignore-words-list = [ "..." ]
skip = [ "target" ]
[tool.deptry]
ignore_notebooks = false
[tool.pyproject-fmt]
keep_full_version = true
[tool.ty]
src.include = [ "src", "tests" ]
[tool.coverage]
run.relative_files = true
run.source = [ "src" ]
report.exclude_also = [
"@(abc\\.)?abstractmethod",
"assert_never(.*)",
"class .*\\bProtocol\\):",
"if TYPE_CHECKING:",
"msg = [\"']",
"raise AssertionError",
"raise NotImplementedError",
]
report.omit = [ "*/pytest-of-*/*" ]
[tool.basedpyright]
reportAny = false
reportExplicitAny = false
reportUnknownArgumentType = false
reportUnknownVariableType = false
[[tool.basedpyright.executionEnvironments]]
root = "tests"
reportMissingParameterType = false
reportPrivateUsage = false
reportUnannotatedClassAttribute = false
reportUnknownLambdaType = false
reportUnknownMemberType = false
reportUnknownParameterType = false
reportUnreachable = false
reportUnusedCallResult = false
reportUnusedExpression = false
reportUnusedFunction = false
reportUnusedParameter = false
[tool.vulture]
paths = [ "src/yamltrip" ]
ignore_names = [
"dump", # Public API method on Document
"original", # Public API property on Editor
]