-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
170 lines (147 loc) · 4.72 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "deferrer"
authors = [{ name = "Chris Fu", email = "[email protected]" }]
description = "Fancy `defer` for Python >= 3.12"
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Development Status :: 4 - Beta",
]
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.11, <3.14"
dynamic = ["version"]
keywords = ["defer", "sugar"]
[project.urls]
Homepage = "https://github.com/Azureblade3808/py-deferrer"
"Bug Tracker" = "https://github.com/Azureblade3808/py-deferrer/issues"
[tool.isort]
profile = "black"
case_sensitive = true
combine_as_imports = true
reverse_relative = true
star_first = true
treat_all_comments_as_code = true
[tool.pyright]
# region[Main Configuration Options]
include = ["**/*.ipy", "**/*.ipynb", "**/*.py", "**/*.pyi"]
stubPath = "__typings__"
pythonPlatform = "All"
typeCheckingMode = "strict"
useLibraryCodeForTypes = false
# endregion
# region[Type Check Diagnostics Settings]
analyzeUnannotatedFunctions = true
strictParameterNoneValue = false
enableTypeIgnoreComments = true
disableBytesTypePromotions = true
strictListInference = false
strictDictionaryInference = false
strictSetInference = false
deprecateTypingAliases = true
enableExperimentalFeatures = false
reportMissingTypeStubs = "none"
reportMissingModuleSource = "error"
reportInvalidTypeForm = "error"
reportMissingImports = "error"
reportUndefinedVariable = "error"
reportAssertAlwaysTrue = "error"
reportInvalidStringEscapeSequence = "error"
reportInvalidTypeVarUse = "error"
reportSelfClsParameterName = "warning"
reportUnsupportedDunderAll = "warning"
reportUnusedExpression = "none"
reportWildcardImportFromLibrary = "warning"
reportAbstractUsage = "error"
reportArgumentType = "error"
reportAssertTypeFailure = "error"
reportAssignmentType = "error"
reportAttributeAccessIssue = "error"
reportCallIssue = "error"
reportGeneralTypeIssues = "error"
reportInconsistentOverload = "error"
reportIndexIssue = "error"
reportInvalidTypeArguments = "error"
reportNoOverloadImplementation = "error"
reportOperatorIssue = "error"
reportOptionalSubscript = "error"
reportOptionalMemberAccess = "error"
reportOptionalCall = "error"
reportOptionalIterable = "error"
reportOptionalContextManager = "error"
reportOptionalOperand = "error"
reportRedeclaration = "error"
reportReturnType = "error"
reportTypedDictNotRequiredAccess = "error"
reportPrivateImportUsage = "error"
reportUnboundVariable = "error"
reportUnhashable = "error"
reportUnusedCoroutine = "error"
reportUnusedExcept = "error"
reportFunctionMemberAccess = "warning"
reportIncompatibleMethodOverride = "error"
reportIncompatibleVariableOverride = "error"
reportOverlappingOverload = "none"
reportPossiblyUnboundVariable = "error"
reportConstantRedefinition = "error"
reportDeprecated = "warning"
reportDuplicateImport = "error"
reportIncompleteStub = "warning"
reportInconsistentConstructor = "error"
reportInvalidStubStatement = "error"
reportMatchNotExhaustive = "error"
reportMissingParameterType = "none"
reportMissingTypeArgument = "none"
reportPrivateUsage = "warning"
reportTypeCommentUsage = "error"
reportUnknownArgumentType = "none"
reportUnknownLambdaType = "none"
reportUnknownMemberType = "none"
reportUnknownParameterType = "none"
reportUnknownVariableType = "none"
reportUnnecessaryCast = "none"
reportUnnecessaryComparison = "none"
reportUnnecessaryContains = "none"
reportUnnecessaryIsInstance = "none"
reportUnusedClass = "warning"
reportUnusedImport = "warning"
reportUnusedFunction = "warning"
reportUnusedVariable = "warning"
reportUntypedBaseClass = "warning"
reportUntypedClassDecorator = "none"
reportUntypedFunctionDecorator = "none"
reportUntypedNamedTuple = "warning"
reportCallInDefaultInitializer = "warning"
reportImplicitOverride = "none"
reportImplicitStringConcatenation = "warning"
reportImportCycles = "none"
reportMissingSuperCall = "none"
reportPropertyTypeMismatch = "none"
reportShadowedImports = "warning"
reportUninitializedInstanceVariable = "none"
reportUnnecessaryTypeIgnoreComment = "none"
reportUnusedCallResult = "error"
# endregion
[tool.pytest.ini_options]
python_files = ["*_tests/*.py"]
addopts = [
"--doctest-modules",
"--doctest-glob=*.md",
"--cov=deferrer",
"--cov-report=xml",
"--ignore-glob=**/samples/*",
]
[tool.setuptools.dynamic]
version = { attr = "deferrer.__version__" }
[tool.setuptools.packages.find]
where = ["."]
include = ["deferrer", "deferrer.*"]