-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
123 lines (107 loc) · 2.97 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "idf-ci"
version = "0.1.0"
description = "The python library for CI/CD of ESP-IDF projects"
readme = "README.md"
requires-python = ">=3.7"
authors = [{ name = "Fu Hanxi", email = "[email protected]" }]
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 3 - Alpha",
"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 :: 3.13",
"Topic :: Software Development :: Testing",
]
dependencies = [
"click",
"tomlkit", # we need both read and write
# build related
"idf-build-apps>=2.6.2,<3",
# test related
"pytest-embedded-idf[serial]~=1.13",
"pytest-embedded-jtag~=1.13",
"pytest-embedded-qemu~=1.13",
"pytest-ignore-test-results>=0.3.0,<1",
"pytest-timeout",
# logging / printing
"rich",
]
[project.urls]
Homepage = "https://github.com/espressif/idf-ci"
Documentation = "https://docs.espressif.com/projects/idf-ci"
Repository = "https://github.com/espressif/idf-ci.git"
Changelog = "https://github.com/espressif/idf-ci/blob/master/CHANGELOG.md"
[project.optional-dependencies]
test = ["pytest", "pytest-cov"]
doc = [
"sphinx",
# theme
"sphinx-rtd-theme",
# extensions
"sphinx_copybutton", # copy button
"myst-parser", # markdown support
"sphinxcontrib-mermaid", # mermaid graph support
"sphinx-argparse", # auto-generate cli help message
"sphinx-tabs", # tabs
]
[project.scripts]
idf-ci = "idf_ci.cli:cli"
[project.entry-points.pytest11]
idf-ci = "idf_ci.idf_pytest.plugin"
[tool.setuptools.packages.find]
include = [
"idf_ci*",
]
[tool.setuptools.package-data]
idf_ci = [
"py.typed",
"templates/*",
]
[tool.isort]
profile = 'black'
force_grid_wrap = 1
[tool.ruff]
line-length = 120
target-version = "py37"
[tool.ruff.lint]
select = [
'F', # Pyflakes
'E', # pycodestyle
'W', # pycodestyle
'I', # isort
'UP', # pyupgrade
'YTT', # flake8-2020
'A', # flake8-builtins
'ARG', # flake8-unused-arguments
'RUF', # ruff
]
[tool.ruff.lint.flake8-unused-arguments]
ignore-variadic-names = true
[tool.ruff.format]
quote-style = "single"
docstring-code-format = true
[tool.mypy]
python_version = "3.8"
[[tool.mypy.overrides]]
module = ["pytest_embedded.plugin.*"]
follow_untyped_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-p no:idf-ci"
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "pep440"
version_provider = "pep621"
update_changelog_on_bump = true