# The contents of this file is based on https://github.com/home-assistant/core/blob/dev/pyproject.toml
# and adapted for use with pytest.

target-version = "py312"

[lint]
select = ["ALL"]

ignore = [
    "ANN101",  # Missing type annotation for `self` in method
    "ANN401",  # Dynamically typed expressions (typing.Any) are disallowed
    "D203",    # no-blank-line-before-class (incompatible with formatter)
    "D212",    # multi-line-summary-first-line (incompatible with formatter)
    "COM812",  # incompatible with formatter
    "ISC001",  # incompatible with formatter,
    "PLR2004", # Magic value used in comparison
    "S101",    # use of assert detected
    "S105",    # Possible hardcoded password
    "S106",    # Possible hardcoded password assigned to argument
    "SLF001",  # Private member accessed outside class
]

[lint.flake8-pytest-style]
fixture-parentheses = false

[lint.pyupgrade]
keep-runtime-typing = true

[lint.mccabe]
max-complexity = 25
