-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
80 lines (68 loc) · 1.7 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
[tool.poetry]
name = "butter-backup"
version = "3.4.0"
description = "Vollverschlüsselte, pseudoinkrementelle Sicherungskopien leicht gemacht"
authors = ["Max Görner <[email protected]>"]
license = "GPL-3.0-or-later"
[tool.poetry.dependencies]
python = ">=3.8.1,<3.13"
typer = ">=0.9,<0.13"
pydantic = "^2.8.2"
loguru = "^0.7.0"
shell-interface = "^0.13.0"
storage-device-managers = "^0.14.0"
rich = {version = "^13.5.2", optional = true}
[tool.poetry.extras]
# In fact, `typer[all]` would be preferred, but Poetry does not support to have
# optional extras of dependencies.
all = ["rich"]
[tool.poetry.group.dev.dependencies]
hypothesis = "^6.108.2"
pytest = "^8.3.1"
pynvim = "^0.5.0"
pdbpp = "^0.10.3"
pytest-cov = "^5.0.0"
mypy = "^1.11.0"
black = "^24.4.2"
ruff = "^0.5.4"
pytest-xdist = "^3.6.1"
[tool.poetry.scripts]
butter-backup = "butter_backup.cli:cli"
[tool.mypy]
plugins = [
"pydantic.mypy"
]
allow_any_unimported = false
warn_unreachable = true
enable_error_code = [
"possibly-undefined"
]
strict = true
allow_incomplete_defs = true
allow_untyped_defs = true
[[tool.mypy.overrides]]
module = "tests.*"
disable_error_code = [
"possibly-undefined"
]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.pytest.ini_options]
addopts = [
"--cov", "src",
"--cov-branch",
"--cov-fail-under", "85"
]
testpaths = ["tests"]
[tool.ruff]
src = [".", "src/"]
[tool.ruff.lint]
select = ["A", "B", "C", "F", "I", "ISC", "PIE", "PL", "Q", "RUF", "SIM", "TID", "W", "YTT"]
ignore = ["E", "PLC1901", "SIM117"]
mccabe.max-complexity = 6
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"