Skip to content

Commit 4261375

Browse files
committed
Linting changes
1 parent 556af96 commit 4261375

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ authors = [{name = "C0rn3j", email = "[email protected]"}]
1515
license = {text = "GPL-2.0-only"}
1616
keywords = ["controller", "mapping", "tools"]
1717
classifiers = [
18-
"Programming Language :: Python :: 3",
19-
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
20-
"Operating System :: POSIX :: Linux",
21-
"Typing :: Typed",
18+
"Programming Language :: Python :: 3",
19+
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
20+
"Operating System :: POSIX :: Linux",
21+
"Typing :: Typed",
2222
]
2323
requires-python = ">=3.10"
2424
#platforms = ["Linux"]
@@ -78,8 +78,8 @@ ignore = [
7878
'W191', # We use tabs for indents, disabling this atrocious PEP 8 recommendation
7979
'D206', # ^
8080
'D203', # incorrect-blank-line-before-class - Clashes with D211
81-
# 'D211', # no-blank-line-before-class - Clashes with D203
82-
# 'D212', # multi-line-summary-first-line - Clashes with D213
81+
#'D211', # no-blank-line-before-class - Clashes with D203
82+
#'D212', # multi-line-summary-first-line - Clashes with D213
8383
'D213', # multi-line-summary-second-line - Clashes with D212
8484
'D400', # ends-in-period - We do not care if docstrings end with a period
8585
'D415', # ends-in-punctuation - ^

scc/drivers/ds4drv.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ def _load_hid_descriptor(self, config, max_size, vid, pid, test_mode):
147147

148148
self._packet_size = 64
149149

150-
# TODO: Which commit made data switch from bytes to bytearray?
151150
def input(self, endpoint: int, data: bytearray) -> None:
152151
# Special override for CPAD touch button
153152
if _lib.decode(ctypes.byref(self._decoder), bytes(data)):
@@ -180,10 +179,7 @@ def __repr__(self) -> str:
180179

181180

182181
def _generate_id(self) -> str:
183-
"""
184-
ID is generated as 'ds4' or 'ds4:X' where 'X' starts as 1 and increases
185-
as controllers with same ids are connected.
186-
"""
182+
"""ID is generated as 'ds4' or 'ds4:X' where 'X' starts as 1 and increases as controllers with same ids are connected."""
187183
magic_number = 1
188184
id = "ds4"
189185
while id in self.daemon.get_active_ids():

0 commit comments

Comments
 (0)