Skip to content

Commit 212aa5f

Browse files
committed
Update project
1 parent becf398 commit 212aa5f

File tree

1 file changed

+20
-51
lines changed

1 file changed

+20
-51
lines changed

pyproject.toml

Lines changed: 20 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tadoasync"
3-
version = "0.1.21"
3+
version = "0.2.1"
44
authors = ["Erwin Douna <[email protected]>"]
55
classifiers = [
66
"Development Status :: 5 - Production/Stable",
@@ -50,12 +50,22 @@ yamllint = "1.33.0"
5050
syrupy = "4.6.1"
5151
deptry = "^0.19.1"
5252

53+
[tool.coverage.run]
54+
source = ["tado"]
55+
omit = [
56+
"tests/*",
57+
"*/.venv/*",
58+
"*/venv/*",
59+
"*/site-packages/*",
60+
]
61+
5362
[tool.coverage.report]
5463
show_missing = true
55-
56-
[tool.coverage.run]
57-
plugins = ["covdefaults"]
58-
source = ["tadoasync"]
64+
fail_under = 95
65+
exclude_lines = [
66+
"pragma: no cover",
67+
"if __name__ == \"__main__\":",
68+
]
5969

6070
[tool.mypy]
6171
# Specify the target platform details in config, so your developers are
@@ -106,50 +116,9 @@ ignore-imports = true
106116
max-line-length = 88
107117

108118
[tool.pytest.ini_options]
109-
addopts = "--cov"
110-
asyncio_mode = "auto"
111-
112-
[tool.ruff]
113-
ignore = [
114-
"ANN101", # Self... explanatory
115-
"ANN102", # cls... just as useless
116-
"ANN401", # Opinioated warning on disallowing dynamically typed expressions
117-
"D203", # Conflicts with other rules
118-
"ARG002", # Conflicts with other rules
119-
"D213", # Conflicts with other rules
120-
"D417", # False positives in some occasions
121-
"PLR2004", # Just annoying, not really useful
122-
"SLOT000", # Has a bug with enums: https://github.com/astral-sh/ruff/issues/5748
123-
"TRY003", # Avoid specifying long messages outside the exception class
124-
"EM101", # Exception must not use a string literal, assign to variable first
125-
"EM102", # Exception must not use an f-string literal, assign to variable first
126-
"PLR0913", # Too many arguments in function definition
127-
"N815", # Scope should not be mixedCase
128-
"PLR0912", # Too many branches
129-
"PLR0915", # Too many statements
130-
"C901", # Too complex
131-
132-
# Conflicts with the Ruff formatter
133-
"COM812",
134-
"ISC001",
119+
addopts = [
120+
"--cov=tado",
121+
"--cov-report=term-missing",
122+
"--cov-report=xml",
123+
"--cov-fail-under=95",
135124
]
136-
select = ["ALL"]
137-
138-
[tool.ruff.flake8-pytest-style]
139-
fixture-parentheses = false
140-
mark-parentheses = false
141-
142-
[tool.ruff.isort]
143-
known-first-party = ["tado"]
144-
145-
[tool.ruff.lint.flake8-type-checking]
146-
runtime-evaluated-base-classes = [
147-
"mashumaro.mixins.orjson.DataClassORJSONMixin",
148-
]
149-
150-
[tool.ruff.mccabe]
151-
max-complexity = 25
152-
153-
[build-system]
154-
build-backend = "poetry.core.masonry.api"
155-
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)