Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
164 lines (142 loc) · 3.97 KB
/
Copy pathpyproject.toml
File metadata and controls
164 lines (142 loc) · 3.97 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "vorta"
dynamic = ["version"]
description = "A GUI for Borg Backup"
readme = "README.md"
license = "GPL-3.0-only"
requires-python = ">=3.11"
authors = [{ name = "Manuel Riel and Vorta contributors" }]
keywords = ["backup", "borgbackup"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: MacOS X",
"Environment :: X11 Applications :: Qt",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: System :: Archiving :: Backup",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
]
dependencies = [
"packaging",
"peewee",
"platformdirs>=2.6.0,<5.0.0; sys_platform != 'darwin'",
"platformdirs>=3.0.0,<5.0.0; sys_platform == 'darwin'",
"psutil",
"pyobjc-core<13; sys_platform == 'darwin'",
"pyobjc-framework-Cocoa<13; sys_platform == 'darwin'",
"pyobjc-framework-CoreWLAN<13; sys_platform == 'darwin'",
"pyobjc-framework-LaunchServices<13; sys_platform == 'darwin'",
"pyqt6>=6.12",
"secretstorage; sys_platform != 'darwin'",
]
[project.optional-dependencies]
test = ["pytest", "pytest-qt", "pytest-mock", "pytest-cov"]
[dependency-groups]
dev = [
"build>=1.2.2.post1",
"coverage",
"lxml>=6.0.2",
"macholib",
"markdown>=3.7",
"mdx-linkify>=2.1",
"nox",
"pkgconfig",
"pre-commit",
"pyinstaller",
"pylint",
"pytest",
"pytest-cov",
"pytest-faulthandler",
"pytest-mock",
"pytest-qt",
"mypy",
"PyQt6-stubs",
"types-peewee",
"ruff",
"tox",
"twine",
"wheel",
]
[project.urls]
Homepage = "https://github.com/borgbase/vorta"
"Bug Tracker" = "https://github.com/borgbase/vorta/issues"
Documentation = "https://docs.borgbase.com"
"Source Code" = "https://github.com/borgbase/vorta"
[project.gui-scripts]
vorta = "vorta.__main__:main"
[tool.setuptools.dynamic]
version = { attr = "vorta._version.__version__" }
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
line-length = 120
include = ["src/**/*.py", "tests/**/*.py"]
[tool.ruff.lint]
select = [
"E", # Error
"F", # pyflakes
"I", # isort
"W", # Warning
"YTT", # flake8-2020
]
ignore = [
"F401",
]
[tool.ruff.format]
quote-style = "preserve"
[tool.pytest.ini_options]
addopts = "-vs"
testpaths = ["tests"]
pythonpath = ["tests/unit"]
qt_default_raising = true
# Dump all thread stacks when a test hangs, e.g. on D-Bus in CI.
faulthandler_timeout = 300
filterwarnings = ["ignore::DeprecationWarning"]
[tool.coverage.run]
source = ["vorta"]
omit = ["tests/*"]
relative_files = true
[tool.tox]
env_list = ["py311", "py312", "py313", "py314", "ruff"]
skip_missing_interpreters = true
[tool.tox.env_run_base]
deps = ["pytest", "pytest-qt", "pytest-mock"]
commands = [["pytest"]]
pass_env = ["DISPLAY"]
[tool.tox.env.ruff]
deps = ["ruff"]
commands = [["ruff", "check", "src", "tests"]]
[tool.mypy]
python_version = "3.11"
warn_return_any = false
warn_unused_configs = true
disallow_untyped_defs = false
check_untyped_defs = false
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["vorta.store.models", "vorta.store.connection", "vorta.store.settings", "vorta.network_status.*"]
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = ["vorta.store.migrations"]
ignore_errors = true
# PyQt6 6.12 stubs for these contain `*args, /`, which is a syntax error.
[[tool.mypy.overrides]]
module = ["PyQt6.QtDBus", "PyQt6.QtGui"]
follow_imports = "skip"
follow_imports_for_stubs = true
[tool.pylint.master]
extension-pkg-whitelist = "PyQt6"
load-plugins = ""
[tool.pylint."messages control"]
disable = "W0511,C0301,R0903,W0212,C0114,C0115,C0116,C0103,E0611,E1120,C0415,R0914,R0912,R0915"
[tool.pylint.format]
max-line-length = 120