-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
82 lines (71 loc) · 1.74 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
# Testing tools configuration
[tool.coverage.run]
relative_files = true
source = ["."]
omit = ["tests/**", "docs/**", "lib/**", "snap/**", "build/**", "setup.py"]
[tool.coverage.report]
show_missing = true
[tool.coverage.html]
directory = "tests/unit/report/html"
[tool.coverage.xml]
output = "tests/unit/report/coverage.xml"
[tool.pytest.ini_options]
minversion = "6.0"
log_cli_level = "INFO"
# Linting tools configuration
[tool.ruff]
line-length = 99
indent-width = 4
exclude = [
".eggs",
".git",
".mypy_cache",
".ruff_cache",
".tox",
".venv",
"__pypackages__",
"_build",
"build",
"dist",
"venv",
"report",
"lib",
]
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
quote-style = "double"
docstring-code-format = false
skip-magic-trailing-comma = false
docstring-code-line-length = "dynamic"
[tool.ruff.lint]
select = [
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C", # flake8-comprehensions
"C9", # mccabe
"D", # pydocstyle
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"PL", # pylint
"W", # pycodestyle warnings
]
ignore = [
"D203", # one-blank-line-before-class
"D213", # multi-line-summary-second-line
]
fixable = ["ALL"]
unfixable = []
per-file-ignores = {"tests/*" = ["D100","D101","D102","D103","D104"]}
[tool.codespell]
skip = "build,lib,venv,icon.svg,.tox,.git,.mypy_cache,.ruff_cache,.coverage,./tests/unit/report"
ignore-words-list = "assertIn"
[tool.mypy]
warn_unused_ignores = true
warn_unused_configs = true
warn_unreachable = true
disallow_untyped_defs = true
ignore_missing_imports = true
exclude = [".eggs", ".git", ".tox", ".venv", ".build", "build", "report", "tests", "lib"]