-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
131 lines (110 loc) · 3.63 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "esp-idf-kconfig"
authors = [
{name = "Espressif Systems"},
]
description = "Kconfig tooling for esp-idf"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.8"
keywords = ["espressif", "embedded", "project", "configuration", "kconfig"]
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Environment :: Console",
"Topic :: Software Development :: Embedded Systems",
"License :: OSI Approved :: Apache Software License",
"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",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
]
dynamic = ['version']
dependencies = [
"windows-curses; platform_system=='Windows'"
]
[project.urls]
Homepage = "https://github.com/espressif/esp-idf-kconfig"
[project.optional-dependencies]
dev = [
"commitizen",
"pre-commit",
"pexpect",
"pyparsing",
"pytest",
]
docs = [
"esp-docs~=1.5"
]
[tool.setuptools.packages]
find = {exclude = ["test", "test.*"]}
[tool.setuptools.dynamic]
version = {attr = "esp_idf_kconfig.__version__"}
[tool.commitizen]
tag_format = "v$version"
version = "2.3.0"
changelog_merge_prerelease = true
annotated_tag = true
version_files = ["esp_idf_kconfig/__init__.py"]
bump_message = "change: Update version to $new_version"
update_changelog_on_bump = true
change_type_order = [
"BREAKING CHANGE",
"New Features",
"Bug Fixes",
"Code Refactoring",
"Performance Improvements"
]
[tool.commitizen.change_type_map]
feat = "New Features"
fix = "Bug Fixes"
refactor = "Code Refactoring"
perf = "Performance Improvements"
[tool.mypy]
disallow_incomplete_defs = false # Disallows defining functions with incomplete type annotations
disallow_untyped_defs = false # Disallows defining functions without type annotations or with incomplete type annotations
ignore_missing_imports = true # Suppress error messages about imports that cannot be resolved
python_version = "3.8" # Specifies the Python version used to parse and check the target program
warn_no_return = true # Shows errors for missing return statements on some execution paths
warn_return_any = true # Shows a warning when returning a value with type Any from a function declared with a non- Any return type
[tool.ruff]
# https://docs.astral.sh/ruff/settings/
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
"__pycache__"
]
line-length = 120
select = ['E', 'F', 'W']
ignore = ["E203"]
# Assume Python 3.8
target-version = "py38"
[tool.ruff.per-file-ignores]
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F"]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# ruff-format hook configuration
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
[tool.codespell]
ignore-words-list ="rsource,osource,orsource"
write-changes = true