-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
189 lines (166 loc) · 5.06 KB
/
pyproject.toml
File metadata and controls
189 lines (166 loc) · 5.06 KB
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
189
[build-system]
build-backend = "flit_core.buildapi"
requires = ["flit_core >=3.2,<4"]
[project]
authors = [
{ name = "Various", email = "t&iconnectivityboardfarm@libertyglobal.com" },
]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Telecommunications Industry",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Embedded Systems",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Acceptance",
]
dynamic = ['version', 'description']
name = "boardfarm3_docsis"
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"boardfarm3>=1.0.0",
"pandas",
"pexpect",
"termcolor",
]
[project.optional-dependencies]
dev = [
"darglint2==v1.8.2",
"flake8",
"flake8-bugbear",
"flake8-builtins",
"flake8-comprehensions",
"flake8-docstrings",
"flake8-rst",
"flake8-rst-docstrings",
"mypy",
"nox",
"pre-commit",
"pylint",
"ruff==v0.11.5",
]
doc = ["sphinx"]
test = [
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-randomly",
]
demo-test = ["pytest-boardfarm3"]
[project.urls]
Source = "https://github.com/lgirdk/boardfarm-docsis"
[project.entry-points."boardfarm"]
docsis = "boardfarm3_docsis.plugins.docsis"
[tool.commitizen]
bump_message = "Bump version to $new_version"
name = "cz_conventional_commits"
style = [
["qmark", "fg:#ff9d00 bold"],
["question", "bold"],
["answer", "fg:#ff9d00 bold"],
["pointer", "fg:#ff9d00 bold"],
["highlighted", "fg:#ff9d00 bold"],
["selected", "fg:#cc5454"],
["separator", "fg:#cc5454"],
["instruction", ""],
["text", ""],
["disabled", "fg:#858585 italic"],
]
tag_format = "$version"
version = "1.0.0"
version_files = [
"boardfarm3_docsis/__init__.py:version",
"pyproject.toml:version",
"pyproject.toml:current",
]
[tool.mypy]
disallow_untyped_defs = true
ignore_missing_imports = true
no_strict_optional = true
pretty = true
show_error_codes = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_ignores = true
[tool.tbump]
[tool.tbump.version]
current = "1.0.0"
# Example of a semver regexp.
# Make sure this matches current_version before
# using tbump
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
'''
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "{new_version}"
# For each file to patch, there is a [[tool.tbump.file]] config
# section containing the path of the file, relative to the
# pyproject.toml location.
[[tool.tbump.file]]
src = "boardfarm3_docsis/__init__.py"
[[tool.tbump.file]]
src = "pyproject.toml"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
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",
]
line-length = 88
target-version = "py39"
[tool.ruff.lint]
ignore = [
"ANN101", # annotation of self object
"ANN204", # annotation of __init__()
"D203",
"D213",
"FBT", # boolean trap, no clear solution
"N", # naming convention, already covered by pylint
"PT003", # allow scope=function to be explicitly passed to fixtures
"SIM114", # simplify if-elif by AND/OR combinations
"TD", # would conflict with TODO highligther
"E501", # long line ignore
"FIX002", # we need to keep TODOs in the code
"S101", # use of assert (flake8-bandit)
"COM812", # The following rule may cause conflicts when used with the formatter
"ISC001", # The following rule may cause conflicts when used with the formatter
]
select = ["ALL"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = [
"F401", # unused imports - we must know if we forgot something...
]
[tool.ruff.format]
# Enable reformatting of code snippets in docstrings.
docstring-code-format = true
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10