From 44f9cc0228dedafbcee6b52587108a9e46d9f69b Mon Sep 17 00:00:00 2001 From: jontofront Date: Fri, 26 Jan 2024 10:20:26 +0200 Subject: [PATCH] add domaini folder downgrade pyp version --- pyproject.toml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 64ca757..52f68b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,15 @@ +[project] +name = "ecoNET-300-Home-Assistant-Integration" + +[tool.mypy] +python_version = "3.11" + [tool.black] line-length = 88 -target-version = ["py311","py312"] +target-version = ["py311"] [tool.pylint.MAIN] -py-version = ["3.11","3.12"] +py-version = ["3.11"] load-plugins = [ "pylint.extensions.code_style", @@ -43,6 +49,13 @@ runtime-typing = false max-line-length-suggestions = 72 [tool.ruff] +exclude = [ + ".git", + ".github", + ".vscode" +] +target-version = "py311" +[tool.ruff.lint] select = [ "B002", # Python does not support the unary prefix increment "B007", # Loop control variable {name} not used within loop body @@ -156,17 +169,12 @@ fixture-parentheses = false [tool.ruff.isort] force-sort-within-sections = true known-first-party = [ - "homeassistant", + "custom_components.econet300", ] combine-as-imports = true split-on-trailing-comma = false [tool.ruff.per-file-ignores] -# Allow for main entry & scripts to write to stdout -"homeassistant/__main__.py" = ["T201"] -"homeassistant/scripts/*" = ["T201"] -"script/*" = ["T20"] - [tool.ruff.mccabe] max-complexity = 25 \ No newline at end of file