forked from Ryochan7/sc-controller
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
88 lines (76 loc) · 3.06 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
# TODO add requirements.txt https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#dynamic-metadata
# but it is BETA
# TODO migrate files from setup.py - https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html
[build-system]
requires = ["setuptools>=60", "setuptools-scm>=8.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sccontroller"
dynamic = ["version"]
description = "User-mode driver, mapper and GTK3 based GUI for Steam Controller, DS4 and similar controllers."
authors = [{name = "C0rn3j", email = "[email protected]"}]
license = {text = "GPL-2.0-only"}
keywords = ["controller", "mapping", "tools"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: POSIX :: Linux",
"Typing :: Typed",
]
requires-python = ">=3.9"
#platforms = ["Linux"]
# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#creating-executable-scripts
[project.gui-scripts]
sc-controller = "scc.bin.sc_controller:main"
[project.scripts]
scc-daemon = "scc.bin.scc_daemon:main"
scc = "scc.bin.scc:main"
scc-osd-dialog = "scc.bin.scc_osd_dialog:main"
scc-osd-keyboard = "scc.bin.scc_osd_keyboard:main"
scc-osd-launcher = "scc.bin.scc_osd_launcher:main"
scc-osd-menu = "scc.bin.scc_osd_menu:main"
scc-osd-message = "scc.bin.scc_osd_message:main"
scc-osd-radial-menu = "scc.bin.scc_osd_radial_menu:main"
scc-osd-show-bindings = "scc.bin.scc_osd_show_bindings:main"
[tool.setuptools]
packages = [
"scc",
"scc.bin",
"scc.drivers",
"scc.lib",
"scc.x11",
"scc.osd",
"scc.foreign",
"scc.gui",
"scc.gui.ae",
"scc.gui.importexport",
"scc.gui.creg"
]
[tool.setuptools_scm]
[tool.ruff]
# Target non-EOL releases at minimum, or later if needed
# https://devguide.python.org/versions/
target-version = "py39"
# Project uses 80 sporadically, so just do soft 80 and hard break at 120
line-length = 120
[tool.ruff.lint.flake8-quotes]
# Existing codebase was already mostly doublequoted
inline-quotes = 'double'
[tool.ruff.format]
# Existing codebase was already mostly doublequoted
quote-style = 'double'
indent-style = 'tab'
[tool.ruff.lint]
select = ['ALL']
ignore = [
'W191', # We use tabs for indents, disabling this atrocious PEP 8 recommendation
'D206', # ^
'D400', # ends-in-period - We do not care if docstrings end with a period
'D415', # ends-in-punctuation - ^
'D401', # non-imperative-mood - Wants docstrings in imperative language but it's really not foolproof, disable
'EM103', # dot-format-in-exception - Do not care about .format in exceptions, readability is not *our* problem, traceback should be colorized
'ERA001', # Test for commented out code, but it has way too many false positives, so disable
'FBT001', # boolean-type-hint-positional-argument - Allow positional booleans in functions, it's not really that much of an issue
'FBT002', # boolean-default-value-positional-argument - ^
'FBT003', # boolean-positional-value-in-call - ^
]