Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ repos:
- tomli

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.2
rev: v0.15.4
hooks:
- id: ruff-check
- id: ruff-format

- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.12.1
rev: v2.16.2
hooks:
- id: pyproject-fmt

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24.1
rev: v0.25
hooks:
- id: validate-pyproject
85 changes: 38 additions & 47 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ classifiers = [
"Topic :: Software Development :: Quality Assurance",
]
dynamic = [ "version" ]
dependencies = [ ]

dependencies = []
optional-dependencies.dev = [
"mypy",
"pylint>=3.3.4",
Expand Down Expand Up @@ -139,41 +138,35 @@ lint.per-file-ignores."cpplint.py" = [
lint.per-file-ignores."cpplint_unittest.py" = [ "FLY002", "N802", "PLW0604", "SIM115", "UP031" ]
lint.mccabe.max-complexity = 29
lint.pylint.allow-magic-value-types = [ "bytes", "int", "str" ]
lint.pylint.max-args = 10 # Default is 5
lint.pylint.max-bool-expr = 8 # Default is 5
lint.pylint.max-branches = 30 # Default is 12
lint.pylint.max-locals = 16 # Default is 15
lint.pylint.max-public-methods = 130 # Default is 20
lint.pylint.max-returns = 9 # Default is 9
lint.pylint.max-statements = 79 # Default is 50

[tool.pylint.basic]
argument-rgx = "[a-z_][a-z0-9_]{0,49}$"
class-rgx = "[A-Z_][a-zA-Z0-9]+$"
const-rgx = "[a-zA-Z_][A-Za-z0-9_]{2,49}$"
function-rgx = "[A-Z_][A-Za-z0-9]{2,49}$|main"
include-naming-hint = true
method-rgx = "[A-Z_][A-Za-z0-9]{2,49}$|__init__|__str__|__contains__"
variable-rgx = "[a-z_][a-z0-9_]{0,49}$"

[tool.pylint.design]
max-args = 20
max-attributes = 10
max-bool-expr = 10
max-branches = 30
max-line-length = 100
max-locals = 25
max-returns = 10
max-statements = 79
min-public-methods = 0
lint.pylint.max-args = 10 # Default is 5
lint.pylint.max-bool-expr = 8 # Default is 5
lint.pylint.max-branches = 30 # Default is 12
lint.pylint.max-locals = 16 # Default is 15
lint.pylint.max-public-methods = 130 # Default is 20
lint.pylint.max-returns = 9 # Default is 9
lint.pylint.max-statements = 79 # Default is 50

[tool.pylint.format]
indent-after-paren = 4
indent-string = ' '
max-module-lines = 10000

[tool.pylint.messages-control]
disable = [
[tool.pylint]
basic.argument-rgx = "[a-z_][a-z0-9_]{0,49}$"
basic.class-rgx = "[A-Z_][a-zA-Z0-9]+$"
basic.const-rgx = "[a-zA-Z_][A-Za-z0-9_]{2,49}$"
basic.function-rgx = "[A-Z_][A-Za-z0-9]{2,49}$|main"
basic.include-naming-hint = true
basic.method-rgx = "[A-Z_][A-Za-z0-9]{2,49}$|__init__|__str__|__contains__"
basic.variable-rgx = "[a-z_][a-z0-9_]{0,49}$"
design.max-args = 20
design.max-attributes = 10
design.max-bool-expr = 10
design.max-branches = 30
design.max-line-length = 100
design.max-locals = 25
design.max-returns = 10
design.max-statements = 79
design.min-public-methods = 0
format.indent-after-paren = 4
format.indent-string = " "
format.max-module-lines = 10000
messages-control.disable = [
"anomalous-unicode-escape-in-string",
"bad-continuation",
"bad-option-value",
Expand All @@ -192,16 +185,14 @@ disable = [
"unused-argument",
"useless-object-inheritance",
]
reports.output-format = "colorized"
reports.reports = false
reports.score = false

[tool.pylint.reports]
output-format = "colorized"
reports = false
score = false

[tool.pytest.ini_options]
[tool.pytest]
# fail if coverage is under 89%
addopts = "--color=yes --cov-fail-under=89 --cov=cpplint"
python_files = [ "*test.py" ]
required_plugins = [ "pytest-cov", "pytest-timeout" ]
testpaths = [ "." ]
timeout = 481
ini_options.addopts = "--color=yes --cov-fail-under=89 --cov=cpplint"
ini_options.python_files = [ "*test.py" ]
ini_options.required_plugins = [ "pytest-cov", "pytest-timeout" ]
ini_options.testpaths = [ "." ]
ini_options.timeout = 481