forked from qtile/qtile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
127 lines (110 loc) · 3.18 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
[build-system]
requires = [
"cffi>=1.1.0",
"cairocffi[xcb]>=1.6.0",
"setuptools>=60",
"setuptools-scm>=7.0",
"wheel",
]
backend-path=["."]
build-backend = "builder"
[project]
name = "qtile"
description = "A pure-Python tiling window manager."
dynamic = ["version", "readme", "dependencies", "optional-dependencies"]
license = {text = "MIT"}
classifiers = [
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: BSD :: FreeBSD",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"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"
[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",
]