-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
119 lines (108 loc) · 3.2 KB
/
pyproject.toml
File metadata and controls
119 lines (108 loc) · 3.2 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
[project]
name = "unwrappy"
version = "0.1.0"
description = "Yet another Rust-inspired Result and Option ergonomics brought to Python, enabling safe, expressive error handling with errors as values."
readme = "README.md"
authors = [
]
requires-python = ">=3.10,<4.0"
dependencies = []
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[project.urls]
Repository = "https://github.com/leodiegues/unwrappy"
Documentation = "https://leodiegues.github.io/unwrappy"
Changelog = "https://github.com/leodiegues/unwrappy/releases"
[build-system]
requires = ["uv_build>=0.9.5,<0.10.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"mypy>=1.19.1",
"pyright>=1.1.408",
"pytest>=9.0.2",
"pytest-asyncio>=0.24.0",
"pytest-cov>=7.0.0",
"ruff>=0.14.11",
"ty>=0.0.11",
"typing-extensions>=4.12.0",
]
docs = [
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.27",
"pillow>=10.0",
"cairosvg>=2.7",
]
[tool.ruff]
line-length = 120
target-version = "py310"
include = [
"src/**/*.py",
"tests/**/*.py",
]
[tool.ruff.lint]
preview = true # For `PLW1514`
extend-select = [
"Q",
"RUF100",
"RUF018",
"C90",
"UP",
"I",
"D",
"TID251",
"PLW1514",
]
flake8-quotes = { inline-quotes = "double", multiline-quotes = "double" }
mccabe = { max-complexity = 15 }
ignore = [
"D100", # ignore missing docstring in module
"D102", # ignore missing docstring in public method
"D104", # ignore missing docstring in public package
"D105", # ignore missing docstring in magic methods
"D107", # ignore missing docstring in __init__ methods
]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["unwrappy"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ty.src]
include = ["src", "tests"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = [ "-vv", "--cov=unwrappy" ]
[tool.pyright]
pythonVersion = "3.10"
typeCheckingMode = "strict"
reportMissingTypeStubs = false
reportUnnecessaryIsInstance = false
reportUnnecessaryTypeIgnoreComment = true
reportMissingModuleSource = false
include = [
"src/unwrappy",
"tests",
]
venvPath = '.'
venv = ".venv"
executionEnvironments = [
{ root = "tests", reportUnusedFunction = false, reportPrivateImportUsage = false, reportUnknownVariableType = false, reportUnknownMemberType = false, reportUnknownArgumentType = false, reportUnknownLambdaType = false, reportUnknownParameterType = false, reportUnnecessaryComparison = false, reportMatchNotExhaustive = false, reportAssertTypeFailure = false },
]
[tool.mypy]
files = "src/unwrappy/*.py"
strict = true