Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (63 loc) · 2 KB
/
Copy pathpyproject.toml
File metadata and controls
69 lines (63 loc) · 2 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
[project]
name = "supporttickets-prioritization"
version = "0.1.0"
description = "Приоритизация тикетов службы поддержки методами ML"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"ipykernel>=7.3.0",
"lightgbm>=4.6.0",
"matplotlib>=3.10.9",
"numpy>=2.2.6",
"optuna>=4.9.0",
"pandas>=2.3.3",
"scikit-learn>=1.7.2",
"seaborn>=0.13.2",
"shap>=0.49.1",
"xgboost==2.1.4",
]
[dependency-groups]
dev = [
"ruff>=0.8.0",
"pytest>=9.1.1",
"pytest-cov>=7.1.0",
"pytest-xdist>=3.8.0",
"pandera>=0.32.0",
"pytest-mock>=3.15.1",
]
[tool.ruff]
line-length = 100
target-version = "py310"
extend-exclude = ["notebooks", ".ipynb_checkpoints"]
[tool.ruff.lint]
# E/W — pycodestyle, F — pyflakes, I — isort, B — bugbear,
# UP — pyupgrade, N — pep8-naming, C4 — comprehensions
select = ["E", "W", "F", "I", "B", "UP", "N", "C4", "SIM"]
ignore = ["E501","N803", "N806"] # E501: длина строки — на усмотрение fromatter'а
# N803,N806: X, X_val и гиперпарметр C допустимы не в lowercase
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["N802", "N803"] # в тестах можно CamelCase имена
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.pytest.ini_options]
minversion = "9.1.1"
testpaths = ["tests"]
pythonpath = ["."]
addopts = [
"-ra",
"--strict-markers",
"--strict-config",
"--cov=src",
"--cov-report=term-missing",
"--cov-report=xml",
"--cov-fail-under=60",
"-p no:cacheprovider",
]
markers = [
"smoke: быстрые проверки импорта и структуры",
"data: тесты схемы и распределения данных",
"model: тесты качества модели и метрик",
"invariant: инвариантные тесты (свойства, которые всегда выполняются)",
"slow: долгие тесты",
]