|
1 | 1 | [tool.poetry] |
2 | 2 | name = "tadoasync" |
3 | | -version = "0.1.21" |
| 3 | +version = "0.2.1" |
4 | 4 | authors = [ "Erwin Douna <[email protected]>"] |
5 | 5 | classifiers = [ |
6 | 6 | "Development Status :: 5 - Production/Stable", |
@@ -50,12 +50,22 @@ yamllint = "1.33.0" |
50 | 50 | syrupy = "4.6.1" |
51 | 51 | deptry = "^0.19.1" |
52 | 52 |
|
| 53 | +[tool.coverage.run] |
| 54 | +source = ["tado"] |
| 55 | +omit = [ |
| 56 | + "tests/*", |
| 57 | + "*/.venv/*", |
| 58 | + "*/venv/*", |
| 59 | + "*/site-packages/*", |
| 60 | +] |
| 61 | + |
53 | 62 | [tool.coverage.report] |
54 | 63 | 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 | +] |
59 | 69 |
|
60 | 70 | [tool.mypy] |
61 | 71 | # Specify the target platform details in config, so your developers are |
@@ -106,50 +116,9 @@ ignore-imports = true |
106 | 116 | max-line-length = 88 |
107 | 117 |
|
108 | 118 | [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", |
135 | 124 | ] |
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