mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
* Formatting with ruff * more logging * Require on_only * Different implementation * More ruff * Remove new logging statements * Remove 'pylint: disable=protected' * style * fixes * ruff * Switch to ruff * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix .github * Fix * Add ignores * fix arg * fix B905 * Fix D * Fix more * Fix more * order * use path * moer path * Remove unused ignores * fix tes deps * fix typo --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
37 lines
1.3 KiB
TOML
37 lines
1.3 KiB
TOML
# The contents of this file is based on https://github.com/home-assistant/core/blob/dev/pyproject.toml
|
|
|
|
target-version = "py310"
|
|
|
|
select = ["ALL"]
|
|
|
|
# All the ones without a comment were the ones that are currently violated
|
|
# by the codebase. The plan is to fix them all (when sensible) and then enable them.
|
|
ignore = [
|
|
"ANN",
|
|
"ANN101", # Missing type annotation for {name} in method
|
|
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in {name}
|
|
"D401", # First line of docstring should be in imperative mood
|
|
"E501", # line too long
|
|
"FBT001", # Boolean positional arg in function definition
|
|
"FBT002", # Boolean default value in function definition
|
|
"FIX004", # Line contains HACK, consider resolving the issue
|
|
"PD901", # df is a bad variable name. Be kinder to your future self.
|
|
"PERF203",# `try`-`except` within a loop incurs performance overhead
|
|
"PLR0913", # Too many arguments to function call (N > 5)
|
|
"PLR2004", # Magic value used in comparison, consider replacing X with a constant variable
|
|
"S101", # Use of assert detected
|
|
"SLF001", # Private member accessed
|
|
]
|
|
|
|
[per-file-ignores]
|
|
"tests/*.py" = ["ALL"]
|
|
".github/*py" = ["INP001"]
|
|
|
|
[flake8-pytest-style]
|
|
fixture-parentheses = false
|
|
|
|
[pyupgrade]
|
|
keep-runtime-typing = true
|
|
|
|
[mccabe]
|
|
max-complexity = 25
|