-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
98 lines (72 loc) · 2.18 KB
/
Copy pathpyproject.toml
File metadata and controls
98 lines (72 loc) · 2.18 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
[project]
name = "statica"
version = "1.6.0"
description = "A minimalistic data validation library"
readme = "README.md"
authors = [{ name = "Marcel Kröker", email = "kroeker.marcel@gmail.com" }]
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
]
########################################################################################
#### MARK: Dependencies
requires-python = ">=3.11, <3.15"
dependencies = []
[dependency-groups]
dev = [
"coverage ~= 7.15.0",
"pyrefly ~= 1.1.0",
"pyinstrument ~= 5.1.0",
"ruff ~= 0.15.0",
]
########################################################################################
#### MARK: Build System
[build-system]
requires = ["uv_build>=0.11.32,<0.12.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-root = ""
########################################################################################
#### MARK: Ruff
[tool.ruff]
show-fixes = true
line-length = 100
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN202", # Missing return type annotation for private function
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"COM812", # Missing trailing comma
"D", # docstrings
"ERA001", # Found commented-out code
"INP001", # File is part of an implicit namespace package. Add an `__init__.py`.
"PLR0913", # Too many arguments in function definition (6 > 5)
"PT", # pytest, project uses stdlib unittest
"S101", # Use of `assert` detected
"T201", # `print` found
"W191", # indentation contains tabs
]
[tool.ruff.format]
indent-style = "tab"
quote-style = "double"
########################################################################################
#### MARK: Testing
[tool.coverage.run]
source = ["statica"]
[tool.coverage.report]
omit = [
"benchmark_*.py",
]
exclude_also = [
"if TYPE_CHECKING:",
'if __name__ == "__main__":',
]
########################################################################################
#### MARK: Pyrefly
[tool.pyrefly]
preset = "strict"
min-severity = "warn"