-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
141 lines (121 loc) · 3.96 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
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
[tool.poetry]
name = "OneLauncher"
version = "2.0.1"
description = "The OneLauncher to rule them all"
readme = "README.md"
authors = ["June Stepp <contact@junestepp.me>"]
license = "GPL-3.0-or-later"
repository = "https://github.com/JuneStepp/OneLauncher"
packages = [{ include = "onelauncher", from = "src" }]
keywords = ["LOTRO", "DDO", "launcher", "addon-manager", "custom-launcher"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Topic :: Games/Entertainment :: Role-Playing",
"Topic :: Utilities",
]
[tool.poetry.dependencies]
python = ">=3.11,<3.12"
PySide6-Essentials = "^6.7.2"
# Keyring packages
keyring = "^25.3.0"
cryptography = "^43.0.0"
SecretStorage = { version = "^3.3.3", markers = "sys_platform == 'linux'" }
# Should only use with KWallet versions < 5.97. See https://bugs.kde.org/show_bug.cgi?id=458318.
dbus-python = { version = "^1.3.2", markers = "sys_platform == 'linux'", optional = true }
defusedxml = "^0.7.1"
platformdirs = "^4.2.2"
xmlschema = "^3.3.2"
feedparser = "^6.0.11"
Babel = "^2.16.0"
zeep = { git = "https://github.com/JuneStepp/python-zeep.git" }
cachetools = "^5.4.0"
trio = "^0.26.2"
httpx = "^0.27.0"
asyncache = { git = "https://github.com/JuneStepp/asyncache.git" }
attrs = "^24.2.0"
cattrs = { version = "^23.2.3", extras = ["tomlkit"] }
typer = "^0.12.3"
qtawesome = "^1.3.1"
pysidesix-frameless-window = "^0.3.12"
packaging = "^24.1"
[tool.poetry.group.dev.dependencies]
Nuitka = "^2.4.8"
pytest = "^8.3.2"
mypy = "^1.11.1"
types-cachetools = "^5.3.0.7"
ruff = "0.5.7"
pytest-randomly = "^3.15.0"
marko = "^2.1.2"
[tool.poetry.extras]
# Should only use with KWallet versions < 5.97. See https://bugs.kde.org/show_bug.cgi?id=458318.
old-kwallet = ["dbus-python"]
[tool.poetry.scripts]
onelauncher = "onelauncher.cli:app"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py311" # TODO: Remove once Poetry supports [project] section
extend-exclude = ["*_uic.py"] # Ignore autogenerated UI files
[tool.ruff.lint]
select = [
"E4", # pycodestyle
"E7",
"E9",
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort,
"RUF", # Ruff
"S", # flake8-bandit
"ASYNC", # flake8-async
"ANN", # flake8-annotations
"A", # flake8-builtins
"CPY", # flake8-copyright
"FA", # flake8-future-annotations
"T20", # flake8-print
"FIX", # flake8-fixme
"ERA", # eradicate
"PL", # Pylint
"PT", # flake8-pytest-style
]
ignore = [
"ANN101", # missing-type-self
"PLR0913", # too-many-arguments
"PLR0915", # too-many-statements
"PLR0912", # too-many-branches
"S113", # request-without-timeout. httpx has default timeouts
]
[tool.ruff.lint.per-file-ignores]
"tests/**.py" = ["S101"] # assert
[tool.ruff.lint.flake8-annotations]
mypy-init-return = true
[tool.ruff.format]
docstring-code-format = true
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
testpaths = ["tests"]
[tool.mypy]
plugins = ["onelauncher.mypy_plugin"]
mypy_path = "stubs"
strict = true
# Disallow most dynamic typing
warn_return_any = true
disallow_any_unimported = true
disallow_any_decorated = true
disallow_any_generics = true
disallow_subclassing_any = true
warn_unreachable = true
implicit_reexport = false
enable_error_code = "redundant-expr,possibly-undefined,truthy-bool,truthy-iterable,ignore-without-code,unused-awaitable,explicit-override,mutable-override,unimported-reveal"
exclude = ["\\.mypy_test_data\\.py", "build/out/"]
[[tool.mypy.overrides]]
# TODO: Future version will have typing,
# once https://github.com/kurtmckee/feedparser/blob/develop/changelog.d/20210801_133300_palfrey_typing.rst
# makes it to a release
module = ["feedparser"]
ignore_missing_imports = true