forked from qtile/qtile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
170 lines (151 loc) · 3.71 KB
/
Copy pathpyproject.toml
File metadata and controls
170 lines (151 loc) · 3.71 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
165
166
167
168
169
170
[build-system]
requires = [
"cffi>=1.1.0",
"cairocffi[xcb]>=1.6.0",
"setuptools>=61",
"setuptools-scm>=7.0",
"wheel",
]
backend-path=["."]
build-backend = "builder"
[project]
name = "qtile"
description = "A pure-Python tiling window manager."
requires-python = ">=3.12"
dynamic = ["version", "readme"]
dependencies = [
"cairocffi >= 1.7.0",
"cffi >= 1.1.0",
"xcffib >= 1.4.0",
]
license = "MIT"
license-files = [ "LICENSE" ]
classifiers = [
"Intended Audience :: End Users/Desktop",
"Operating System :: POSIX :: BSD :: FreeBSD",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Desktop Environment :: Window Managers",
]
[project.urls]
"Homepage" = "https://qtile.org"
"Documentation" = "https://docs.qtile.org/"
"Code" = "https://github.com/qtile/qtile/"
"Issue tracker" = "https://github.com/qtile/qtile/issues"
"Contributing" = "https://docs.qtile.org/en/latest/manual/contributing.html"
[project.scripts]
qtile = "libqtile.scripts.main:main"
[project.optional-dependencies]
dev = [
"coverage",
"pytest-cov",
"pre-commit",
"PyGObject",
"pycairo >= 1.25.1",
"isort",
"pytest >= 6.2.1",
"mypy",
"anyio",
"check-manifest",
"twine",
"build",
]
optional_core = [
"dbus-fast",
"libcst >= 1.0.0",
"setproctitle",
]
widgets = [
"imaplib2",
"keyring",
"mailbox",
"psutil",
"pulsectl",
"pulsectl_asyncio",
"python-mpd2",
"pytz",
"xdg",
"xmltodict",
]
wayland = [
"pywayland==0.4.17",
"xkbcommon >= 0.3",
"pywlroots==0.17.0",
]
[tool.setuptools.packages.find]
include = ["libqtile*"]
[tool.setuptools_scm]
[tool.setuptools.dynamic]
readme = {file = "README.rst"}
[tool.ruff]
line-length = 98
exclude = ["libqtile/_ffi.*.py", "libqtile/backend/x11/_ffi.*.py", "test/configs/syntaxerr.py"]
target-version = "py310"
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"N", # pep8-naming
"G", # flake8-logging-format
"PIE", # flake8-pie
"UP", # pyupgrade
]
ignore = [
"E501", # ignore due to conflict with formatter
"N818", # exceptions don't need the Error suffix
"E741", # allow ambiguous variable names
]
fixable = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"stubs/*" = [
"N", # naming conventions don't matter in stubs
"F403", # star imports are okay in stubs
"F405", # star imports are okay in stubs
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.isort]
known-first-party = ["libqtile", "test"]
default-section = "third-party"
[tool.mypy]
mypy_path = "stubs"
python_version = "3.13"
warn_unused_configs = true
warn_unused_ignores = true
warn_unreachable = true
no_implicit_optional = true
disallow_untyped_defs = false
disable_error_code = ["method-assign", "annotation-unchecked"]
[[tool.mypy.overrides]]
module = [
"libqtile.backend.wayland.*",
"libqtile.backend",
"libqtile.bar",
"libqtile.core.*",
"libqtile.config",
"libqtile.layout.base",
"libqtile.log_utils",
"libqtile.utils",
]
disallow_untyped_defs = true
[tool.vulture]
paths = ["libqtile"]
exclude = ["test/configs/syntaxerr.py"]
min_confidence = 100
[tool.pytest.ini_options]
python_files = "test_*.py"
testpaths = ["test"]
filterwarnings = [
"error:::libqtile",
"error:::test",
"ignore:::dbus_next",
]