-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
83 lines (76 loc) · 1.91 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[project]
name = "mikrotik_sms"
readme = "README.md"
[tool.ruff]
line-length = 128
indent-width = 4
target-version = "py312"
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"htmlcov",
".mypy_cache",
".pytest_cache",
".github",
"node_modules",
"site-packages",
"venv",
]
[tool.ruff.lint]
preview = false
select = ["E", "C","R", "F", "B", "W", "I", "C90", "N", "D", "UP", "YTT",
"RUF","PGH","PT","T20","DTZ","TD","PTH","ARG","INT","TCH","TID","SIM","PERF","ASYNC","ANN","S","A","COM","C4"]
ignore = [
"W191","E111","E114","E117","D206","D300","Q000","Q001","COM812","COM819","ISC001","ISC002", # std formatter conflicts
"D203","D213", # other formatter clashes
"TD002","TD003","TD005","SIM102","SIM117","ANN002", "ANN003","SIM108",
"D103","D100","D101","D102","D104","D107","D415","D400","D415","ANN101","ANN401",
"S101","C901","FURB113","PGH003",
"S602","S607"] # subprocess usage
unfixable = ["B"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = []
"**/{tests,docs}/*" = ["ANN201","ANN204","ANN001","ARG002","ARG001","ANN202","PT004","ARG001","SIM115"]
"conftest.py" = ["ANN201","ANN204","ANN001","ARG002","ARG001","ANN202","PT004","ARG001","SIM115"]
[tool.ruff.format]
preview = true
[tool.poetry.group.dev.dependencies]
homeassistant-stubs = "2024.2.2"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = [
"tests",
]
norecursedirs = [
".git",
"templates",
]
addopts = [
"--timeout=30",
"--cov-report=xml:cov.xml",
"--cov-report=html",
"--cov-report=term-missing",
"--cov=custom_components.mikrotik_sms",
"--cov-fail-under=50"
]