-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyproject.toml
107 lines (96 loc) · 2.65 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
[build-system]
requires = [
"setuptools>=62.4.0",
"wheel",
"cffi>=1.12.0; platform_python_implementation != 'PyPy'",
]
build-backend = "setuptools.build_meta"
[project]
name = "pywlroots"
description = "Python binding to the wlroots library using cffi"
authors = [{name = "Sean Vig", email = "[email protected]"}]
requires-python = ">=3.8"
license = {text = "University of Illinois/NCSA Open Source License"}
readme = "README.rst"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Desktop Environment :: Window Managers",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"cffi >= 1.12.0; platform_python_implementation != 'PyPy'",
"pywayland >= 0.4.14",
"xkbcommon >= 0.2",
]
dynamic = ["version"]
[project.optional-dependencies]
test = ["pytest"]
typecheck = [
"mypy",
"types-cffi",
"types-dataclasses",
]
[project.urls]
homepage = "https://github.com/flacjacket/pywlroots"
[tool.setuptools]
zip-safe = false
[tool.setuptools.packages.find]
include = ["wlroots*"]
[tool.setuptools.package-data]
wlroots = ["py.typed", "include/*.h"]
[tool.setuptools.dynamic]
version = {attr = "version.version"}
[tool.ruff]
# E/W pycodestyle errors + warnings
# F pyflakes
# I isort
# N pep8 naming
# UP pyupgrade
# RUF ruff specific rules
lint.select = ['E', 'F', 'I', 'N', 'W', 'UP', 'RUF']
lint.ignore = ["E501"]
# Match black line length
line-length = 88
target-version = "py38"
[tool.black]
line-length = 88
target-version = ["py38"]
[tool.mypy]
python_version = "3.8"
check_untyped_defs = true
# disallow_any_decorated = true
# disallow_any_explicit = true
# disallow_any_expr = true
# disallow_any_generics = true
# disallow_any_unimported = true
# disallow_incomplete_defs = true
disallow_subclassing_any = true
# disallow_untyped_calls = true
# disallow_untyped_decorators = true
# disallow_untyped_defs = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
warn_incomplete_stub = true
warn_no_return = true
warn_redundant_casts = true
# warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = [
"cffi",
"wlroots._ffi",
"xkbcommon.*",
]
ignore_missing_imports = true