-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
174 lines (140 loc) · 3.94 KB
/
pyproject.toml
File metadata and controls
174 lines (140 loc) · 3.94 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
[project]
name = "rustico"
version = "1.0.2"
description = "A Rust-inspired, ergonomic Result type for Python with first-class async support, pattern matching, and a clean API."
readme = "README.md"
requires-python = ">=3.8"
keywords = [
"result",
"rust",
"error-handling",
"async",
"pattern-matching",
"monad",
"decorator",
"type-safety",
"python",
"functional-programming"
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed"
]
dependencies = [ ]
[project.license]
text = "MIT"
[[project.authors]]
name = "Simon Waiblinger"
email = "16225108+simwai@users.noreply.github.com"
[project.urls]
Homepage = "https://github.com/simwai/rustico"
Documentation = "https://github.com/simwai/rustico#readme"
Source = "https://github.com/simwai/rustico"
Tracker = "https://github.com/simwai/rustico/issues"
[dependency-groups]
dev = [
"ruff> = 0.12.1",
"pytest> = 8.3.5",
"pytest-asyncio> = 0.24.0",
"pre-commit> = 3.5.0",
"twine> = 6.1.0",
"mkdocs> = 1.6.1",
"mkdocs-material> = 9.6.15",
"lazydocs> = 0.4.8",
"mkdocs-awesome-pages-plugin> = 2.9.2"
]
[tool.ruff]
exclude = [
".git",
".pytest_cache",
".ruff_cache",
".venv",
"__pypackages__",
"build",
"dist",
"node_modules",
"venv",
"*.json"
]
line-length = 120
indent-width = 2
target-version = "py38"
[tool.ruff.lint]
select = [ "E", "W", "F", "I", "B", "C4", "UP", "RUF", "E501" ]
ignore = [ "B008", "C901", "RUF012", "W293" ]
fixable = [ "ALL" ]
unfixable = [ ]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"src/**/__init__.py" = [ "F401" ]
[tool.ruff.lint.isort]
known-first-party = [ "src" ]
force-single-line = false
combine-as-imports = true
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[tool.pdm.scripts]
start = "python -m src.rustico"
format = "ruff format src/"
test = "pytest"
bump-patch = "pdm bump patch"
bump-minor = "pdm bump minor"
bump-major = "pdm bump major"
lazydocs-build = "lazydocs --src-base-url=https://github.com/simwai/rustico/tree/main/ --output-path=./docs src/rustico/ --"
mkdocs-build = "mkdocs build"
mkdocs-serve = "mkdocs serve"
upload-testpypi = "twine upload -r testpypi dist/* --skip-existing --config ./.pypirc"
upload-pypi = "twine upload -r pypi dist/* --skip-existing --config ./.pypirc"
[tool.pdm.scripts.docs]
composite = [ "pdm lazydocs-build", "pdm mkdocs-build" ]
[tool.pdm.scripts.test-publish]
composite = [ "pdm build", "pdm upload-testpypi" ]
[tool.pdm.scripts.normal-publish]
composite = [ "pdm build", "pdm upload-pypi" ]
[tool.pdm.build]
includes = [ "src" ]
package-dir = "src"
[tool.pyright]
include = [ "src/**" ]
exclude = [ "**/__pycache__/**", ".ruff_cache/**", "**/pdm/python/**" ]
pythonPlatform = "All"
pythonVersion = "3.8"
typeCheckingMode = "off"
reportArgumentType = false
reportAssignmentType = false
reportAttributeAccessIssue = false
reportCallIssue = false
reportGeneralTypeIssues = false
reportIncompatibleMethodOverride = false
reportIncompatibleVariableOverride = false
reportIndexIssue = false
reportMissingImports = false
reportOperatorIssue = false
reportOptionalMemberAccess = false
reportOptionalOperand = false
reportPossiblyUnboundVariable = false
reportPrivateImportUsage = false
reportRedeclaration = false
reportReturnType = false
reportTypedDictNotRequiredAccess = false
[tool.pytest.ini_options]
asyncio_mode = "strict"
asyncio_default_fixture_loop_scope = "function"
[build-system]
requires = [ "pdm-backend" ]
build-backend = "pdm.backend"