-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
169 lines (153 loc) · 3.83 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "jetsontools"
version = "0.0.4"
authors = [
{name="Justin Davis", email="[email protected]"},
]
maintainers = [
{name="Justin Davis", email="[email protected]"},
]
description = "Tools for working with NVIDIA Jetson devices."
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3 :: Only",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Natural Language :: English",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Typing :: Typed",
]
requires-python=">=3.8, <=3.13"
dependencies = [
"typing_extensions>=4.0.0",
]
[project.urls]
"Homepage" = "https://github.com/justincdavis/jetsontools"
"Bug Tracker" = "https://github.com/justincdavis/jetsontools/issues"
[project.optional-dependencies]
ci = [
"pyupgrade>=3.10",
"ruff>=0.4.5",
"mypy>=1.10.0",
]
test = [
"pytest>=6.2.0",
]
docs = [
"sphinx>=6.1.0",
"sphinx-rtd-theme>=1.3.0",
"myst_parser>=1.0.0",
]
dev = [
"jetsontools[ci]",
"jetsontools[test]",
"jetsontools[docs]",
"twine>=4.0.0",
"wheel>=0.37.0",
"bumpver>=2023.1126",
"pyclean>=2.7.0",
]
[tool.bumpver]
current_version = "0.0.4"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "Bump version {old_version} -> {new_version}"
commit = true
tag = true
push = false
[tool.bumpver.file_patterns]
"pyproject.toml" = ['current_version = "{version}"', 'version = "{version}"']
"src/jetsontools/__init__.py" = ["{version}"]
"docs/conf.py" = ["{version}"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"jetsontools" = ["py.typed"]
[tool.ruff]
fix = true
show-fixes = true
target-version = "py38"
builtins = ["_"]
line-length = 88
indent-width = 4
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.ruff.lint]
select = ["ALL"]
ignore = ["PLR", "C901", "E501", "D203", "D212", "ERA", "DOC502"]
fixable = ["ALL"]
unfixable = []
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
per-file-ignores = {}
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.mypy]
python_version = "3.8"
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = false
strict_equality = true
check_untyped_defs = true
disallow_subclassing_any = true
disallow_untyped_decorators = true
disallow_any_generics = false
disallow_untyped_calls = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_reexport = true
warn_return_any = true
[tool.pyright]
include = ["src"]
exclude = ["**/node_modules",
"**/__pycache__",
]
ignore = ["scripts/*"]
defineConstant = {DEBUG = true}
stubPath = "typings"
reportMissingImports = true
reportMissingTypeStubs = false
pythonVersion = "3.8"
pythonPlatform = "Linux"
executionEnvironments = [
{ root = "src", pythonVersion = "3.8", stubPath = "typings" },
]