-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
110 lines (97 loc) · 3.11 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
[build-system]
requires = ["hatchling>=1.10.0"]
build-backend = "hatchling.build"
[project]
name = "pycocotools-stubs"
authors = [{name="Bagard Hoel"}]
description = "Unofficial stubs for the pycocotools package."
keywords = ["pycocotools", "stubs"]
readme = "README.md"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
]
license = {text = "MIT"}
dynamic = ["version"]
dependencies = ["pycocotools>=2.0.6"]
requires-python = ">=3.8"
packages = [
{ "include" = "pycocotools-stubs"}
]
[project.urls]
"Homepage" = "https://github.com/hoel-bagard/pycocotools-stubs"
"Bug Tracker" = "https://github.com/hoel-bagard/pycocotools-stubs/issues"
[project.optional-dependencies]
dev = ["pre-commit", "pip-tools", "ruff", "pyright"]
build = ["hatch"]
[tool.hatch.version]
path = "src/pycocotools-stubs/__init__.pyi"
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/.pytest_cache",
"/build",
"/dist",
"/docs",
]
[tool.hatch.build.targets.wheel]
packages = ["src/pycocotools-stubs"]
[tool.hatch.envs.pypi.scripts]
# hatch run pypi:publish_test
publish_test = "hatch build --clean && hatch publish -r test"
publish = "hatch build --clean && hatch publish"
[tool.ruff]
select = ["ALL"]
# A003 Class attribute `X` is shadowing a python builtin
# B006: Do not use mutable data structures for argument defaults
# PYI021: Docstrings should not be included in stubs
ignore = ["A003", "B006", "D", "FBT", "N", "PYI021"]
line-length = 10000
[tool.ruff.per-file-ignores]
"__init__.pyi" = ["F401"]
[tool.ruff.isort]
order-by-type = false
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
[tool.pyright]
pythonVersion = "3.11"
pythonPlatform = "Linux"
include = ["src/pycocotools-stubs"]
ignore = ["src/pycocotools-stubs/__init__.pyi"]
strictListInference = true
strictDictionaryInference = true
strictSetInference = true
reportMissingModuleSource = false
reportMissingImports = true
reportMissingTypeStubs = false
reportUnusedImport = true
reportUnusedClass = "warning"
reportUnusedFunction = "warning"
reportUnusedVariable = "warning"
reportDuplicateImport = "warning"
reportUntypedNamedTuple = "warning"
reportUntypedFunctionDecorator = "warning"
reportUntypedClassDecorator = "warning"
reportMissingSuperCall = false
reportUnknownArgumentType = "warning"
reportUnknownLambdaType = "warning"
reportUnknownVariableType = "warning"
reportUnknownMemberType = false
reportMissingParameterType = "warning"
reportMissingTypeArgument = "warning"
reportCallInDefaultInitializer = false
reportUnnecessaryIsInstance = "warning"
reportUnnecessaryCast = "warning"
reportUnnecessaryComparison = "warning"
reportImplicitStringConcatenation = false
reportUnusedCallResult = false
reportUnusedExpression = "warning"
reportUnnecessaryTypeIgnoreComment = "warning"
reportMatchNotExhaustive = "warning"