-
Notifications
You must be signed in to change notification settings - Fork 17
/
pyproject.toml
188 lines (163 loc) · 4.24 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = [
"idf_component_manager*",
"idf_component_tools*",
]
[project]
name = "idf-component-manager"
version = "2.1.1"
authors = [
{ name = "Sergei Silnov", email = "[email protected]" },
{ name = "Fu Hanxi", email = "[email protected]" },
]
description = "Espressif IDF Component Manager"
readme = "README.md"
requires-python = ">=3.7,<4.0"
license = { text = "Apache-2.0" }
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'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',
]
dependencies = [
"click",
"colorama",
"pyparsing",
"pyyaml",
"ruamel.yaml",
"requests",
"requests-file",
"requests-toolbelt",
"tqdm",
"jsonref",
"pydantic",
"pydantic-core",
"pydantic-settings",
"typing-extensions; python_version < '3.12'",
]
[project.optional-dependencies]
docs = [
"sphinx",
"sphinx-click",
"sphinx-copybutton",
"sphinx-rtd-theme",
"sphinx-tabs",
"sphinx_collapse",
]
test = [
"jinja2",
"jsonschema",
"pexpect",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-split",
"requests-mock",
"vcrpy",
]
# for dev please use python >3.8
dev = [
'commitizen',
'deptry',
'pre-commit'
]
all = ["idf-component-manager[docs,test,dev]"]
[project.scripts]
compote = "idf_component_manager.cli:safe_cli"
[project.urls]
Repository = "https://github.com/espressif/idf-component-manager.git"
Documentation = "https://docs.espressif.com/projects/idf-component-manager/en/latest/"
Issues = "https://github.com/espressif/idf-component-manager/issues"
Changelog = "https://github.com/espressif/idf-component-manager/blob/main/CHANGELOG.md"
#########
# Tools #
#########
[tool.mypy]
python_version = "3.7"
plugins = [
"pydantic.mypy"
]
[[tool.mypy.overrides]]
module = "idf_component_manager.version_solver.mixology.*"
ignore_errors = true
[tool.deptry]
extend_exclude = [
"ci",
"docs",
"integration_tests",
"idf_component_tools/file_cache.py", # Tries a number of ways to detect paths on Windows
]
pep621_dev_dependency_groups = ["test", "docs", "dev", "all"]
[tool.deptry.per_rule_ignores]
DEP001 = ["idf_py_actions"]
DEP002 = ["colorama"]
[tool.deptry.package_module_name_map]
pyyaml = ["yaml"]
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "pep440"
version_provider = "pep621"
version_files = [
"idf_component_tools/__version__.py:__version__",
"pyproject.toml:project.version",
]
update_changelog_on_bump = true
bump_message = "change: bump version from v$current_version to v$new_version"
[tool.ruff]
line-length = 100
target-version = "py37"
[tool.ruff.lint]
extend-select = [
"S", # flake8-bandit
"I", # isort
'ARG', # flake8-unused-arguments
"ERA", # eradicate
"ICN", # flake8-import-conventions
"RUF100", # unused noqa
"PLW1514", # unspecified-encoding
]
typing-modules = [
"idf_component_tools.utils",
]
[tool.ruff.format]
quote-style = "single"
docstring-code-format = true
[tool.ruff.lint.flake8-import-conventions]
banned-from = ["typing"]
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
"typing" = "t"
[tool.ruff.lint.flake8-unused-arguments]
ignore-variadic-names = true
[tool.ruff.lint.per-file-ignores]
"ci/*" = [
"S", # flake8-bandit
"PLW1514", # unspecified-encoding
]
"integration_tests/*" = [
"S", # flake8-bandit
"E712", # comparison to False/True
"PLW1514", # unspecified-encoding
]
"tests/*" = [
"S", # flake8-bandit
"E712", # comparison to False/True
"PLW1514", # unspecified-encoding
]
"idf_component_tools/semver/base.py" = [
"S101", # use of assert
]
"idf_component_manager/version_solver/mixology/*" = [
"S101", # use of assert
]