Skip to content

Commit ebf2c2b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3f3a2e4 commit ebf2c2b

File tree

1 file changed

+38
-47
lines changed

1 file changed

+38
-47
lines changed

pyproject.toml

Lines changed: 38 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ classifiers = [
3636
"Topic :: Software Development :: Quality Assurance",
3737
]
3838
dynamic = [ "version" ]
39-
dependencies = [ ]
40-
39+
dependencies = []
4140
optional-dependencies.dev = [
4241
"mypy",
4342
"pylint>=3.3.4",
@@ -139,41 +138,35 @@ lint.per-file-ignores."cpplint.py" = [
139138
lint.per-file-ignores."cpplint_unittest.py" = [ "FLY002", "N802", "PLW0604", "SIM115", "UP031" ]
140139
lint.mccabe.max-complexity = 29
141140
lint.pylint.allow-magic-value-types = [ "bytes", "int", "str" ]
142-
lint.pylint.max-args = 10 # Default is 5
143-
lint.pylint.max-bool-expr = 8 # Default is 5
144-
lint.pylint.max-branches = 30 # Default is 12
145-
lint.pylint.max-locals = 16 # Default is 15
146-
lint.pylint.max-public-methods = 130 # Default is 20
147-
lint.pylint.max-returns = 9 # Default is 9
148-
lint.pylint.max-statements = 79 # Default is 50
149-
150-
[tool.pylint.basic]
151-
argument-rgx = "[a-z_][a-z0-9_]{0,49}$"
152-
class-rgx = "[A-Z_][a-zA-Z0-9]+$"
153-
const-rgx = "[a-zA-Z_][A-Za-z0-9_]{2,49}$"
154-
function-rgx = "[A-Z_][A-Za-z0-9]{2,49}$|main"
155-
include-naming-hint = true
156-
method-rgx = "[A-Z_][A-Za-z0-9]{2,49}$|__init__|__str__|__contains__"
157-
variable-rgx = "[a-z_][a-z0-9_]{0,49}$"
158-
159-
[tool.pylint.design]
160-
max-args = 20
161-
max-attributes = 10
162-
max-bool-expr = 10
163-
max-branches = 30
164-
max-line-length = 100
165-
max-locals = 25
166-
max-returns = 10
167-
max-statements = 79
168-
min-public-methods = 0
141+
lint.pylint.max-args = 10 # Default is 5
142+
lint.pylint.max-bool-expr = 8 # Default is 5
143+
lint.pylint.max-branches = 30 # Default is 12
144+
lint.pylint.max-locals = 16 # Default is 15
145+
lint.pylint.max-public-methods = 130 # Default is 20
146+
lint.pylint.max-returns = 9 # Default is 9
147+
lint.pylint.max-statements = 79 # Default is 50
169148

170-
[tool.pylint.format]
171-
indent-after-paren = 4
172-
indent-string = ' '
173-
max-module-lines = 10000
174-
175-
[tool.pylint.messages-control]
176-
disable = [
149+
[tool.pylint]
150+
basic.argument-rgx = "[a-z_][a-z0-9_]{0,49}$"
151+
basic.class-rgx = "[A-Z_][a-zA-Z0-9]+$"
152+
basic.const-rgx = "[a-zA-Z_][A-Za-z0-9_]{2,49}$"
153+
basic.function-rgx = "[A-Z_][A-Za-z0-9]{2,49}$|main"
154+
basic.include-naming-hint = true
155+
basic.method-rgx = "[A-Z_][A-Za-z0-9]{2,49}$|__init__|__str__|__contains__"
156+
basic.variable-rgx = "[a-z_][a-z0-9_]{0,49}$"
157+
design.max-args = 20
158+
design.max-attributes = 10
159+
design.max-bool-expr = 10
160+
design.max-branches = 30
161+
design.max-line-length = 100
162+
design.max-locals = 25
163+
design.max-returns = 10
164+
design.max-statements = 79
165+
design.min-public-methods = 0
166+
format.indent-after-paren = 4
167+
format.indent-string = " "
168+
format.max-module-lines = 10000
169+
messages-control.disable = [
177170
"anomalous-unicode-escape-in-string",
178171
"bad-continuation",
179172
"bad-option-value",
@@ -192,16 +185,14 @@ disable = [
192185
"unused-argument",
193186
"useless-object-inheritance",
194187
]
188+
reports.output-format = "colorized"
189+
reports.reports = false
190+
reports.score = false
195191

196-
[tool.pylint.reports]
197-
output-format = "colorized"
198-
reports = false
199-
score = false
200-
201-
[tool.pytest.ini_options]
192+
[tool.pytest]
202193
# fail if coverage is under 89%
203-
addopts = "--color=yes --cov-fail-under=89 --cov=cpplint"
204-
python_files = [ "*test.py" ]
205-
required_plugins = [ "pytest-cov", "pytest-timeout" ]
206-
testpaths = [ "." ]
207-
timeout = 481
194+
ini_options.addopts = "--color=yes --cov-fail-under=89 --cov=cpplint"
195+
ini_options.python_files = [ "*test.py" ]
196+
ini_options.required_plugins = [ "pytest-cov", "pytest-timeout" ]
197+
ini_options.testpaths = [ "." ]
198+
ini_options.timeout = 481

0 commit comments

Comments
 (0)