-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (107 loc) · 3.16 KB
/
pyproject.toml
File metadata and controls
120 lines (107 loc) · 3.16 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 Almaz Ilaletdinov <a.ilaletdinov@yandex.ru>
# SPDX-License-Identifier: MIT
[tool.poetry]
version = "0.7.3"
requires-poetry = ">=2.0"
[project]
name = "ondivi"
description = ""
dynamic = ["version"]
readme = "README.md"
authors = [{name = "Almaz Ilaletdinov", email = "a.ilaletdinov@yandex.ru"}]
requires-python = ">=3.10,<4.0"
dependencies = [
"gitpython (>=2.1.15)",
"parse (>=1.4,<2.0)",
"click (>=0.2)",
]
[project.scripts]
ondivi = "ondivi.entry:main"
[tool.poetry.group.dev.dependencies]
ruff = "0.15.4"
pytest = "9.0.2"
pytest-cov = "7.0.0"
mypy = "1.19.1"
deltaver = "1.0.0"
mutmut = "2.5.1"
junit-xml = "1.9" # lock for mutmut
pytest-randomly = "4.0.1"
tomli = "2.4.0"
pyyaml = "6.0.3"
types-pyyaml = "6.0.12.20250915"
wemake-python-styleguide = "1.6.0"
[tool.isort]
line_length = 120
multi_line_output = 3
include_trailing_comma = true
[tool.ruff.lint]
select = ["ALL"]
fixable = [
"F401", # Unused import
"I001", # sort imports
"Q000", # quotes
]
ignore = [
"ARG001", # Unused function argument
"ARG002", # Unused method argument
"D203", # no-blank-line-before-class
"D213", # multi-line-summary-first-line
"D401", # First line of docstring should be in imperative mood
"D418", # Function decorated with `@overload` shouldn't contain a docstring
"FBT001", # Boolean-typed positional argument in function definition
"FBT002", # Boolean-typed positional argument in function definition
"FIX002", # Line contains T0DO, consider resolving the issue
"FLY002", # We not use f-strings
"RUF100", # WPS primary linter
"RUF001", # Project contain cyrillic symbols
"RUF002", # Project contain cyrillic symbols
"RET505", # Unnecessary `elif` after `return` statement
"RET506", # Unnecessary `elif` after `raise` statement
"UP030", # We use explicit references
"UP032", # We not use f-strings
"UP004", # Class `PrayerReaction` inherits from `object`
"TD", # "t0do" formats
"PLR630", # We disrespect staticmethods
"TC003", # Move standard library import `...` into a type-checking block
"TC001", # Move application import into a type-checking block
]
external = ["WPS"]
[tool.ruff]
line-length = 120
target-version = "py310"
output-format = "concise"
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "double"
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # use of `assert` detected
"PLR2004", # Magic value
"PLR0913", # Too many arguments to function call
"INP001", # Add an `__init__.py`. Tests is closed to import
]
[build-system]
requires = ["poetry-core (>=2.0)"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = [
"tests/*",
]
[tool.deltaver]
fail_on_avg = 50
fail_on_max = 360
excluded = [
"mutmut",
"smmap", # https://github.com/gitpython-developers/gitdb
# gitpython >=2.1.15
# └── gitdb >=4.0.1,<5
# └── smmap >=3.0.1,<6
"junit-xml",
# mutmut 3.1.0 mutation testing for Python 3
# └── junit-xml 1.8
]
[tool.mutmut]
paths_to_mutate = "ondivi"
runner = "pytest tests/unit -x -q --tb=no -o addopts=''"
tests_dir = "tests"