Skip to content

Commit 7c7024c

Browse files
authored
Add Python 3.12 to Action (#2320)
* Try python 3.12 * Trigger py file for action * Revert previous commit * fix flake8 warnings for python 3.12 * fix e126 * fix e126 * ignoring e126 as it is too strict * revert e126 attempts
1 parent aadff23 commit 7c7024c

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

.flake8

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[flake8]
22
max-line-length = 127
33
ignore =
4+
# continuation line over-indented for hanging indent
5+
E126,
46
# continuation line over-indented for visual indent
57
E127,
68
# continuation line under-indented for visual indent

.github/workflows/pythonpackage_future3.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
max-parallel: 4
2121
matrix:
22-
python-version: ['3.9', '3.10', '3.11']
22+
python-version: ['3.9', '3.10', '3.11', '3.12']
2323

2424
steps:
2525
- uses: actions/checkout@v3

src/jukebox/components/controls/common/evdev_listener.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def run(self):
160160
self._connect()
161161
except FileNotFoundError as e:
162162
# This error occurs, if opening the bluetooth input device fails
163-
logger.debug(f"{e} (attempt: {idx+1}/{self.open_retry_cnt}). Retrying in {self.open_retry_delay}")
163+
logger.debug(f"{e} (attempt: {idx + 1}/{self.open_retry_cnt}). Retrying in {self.open_retry_delay}")
164164
time.sleep(self.open_retry_delay)
165165
except AttributeError as e:
166166
# This error occurs, when the device can be found, but does not have the mandatory keys

src/jukebox/components/volume/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def _publish_outputs(self, pulse_inst: pulsectl.Pulse):
424424
def _set_output(self, pulse_inst: pulsectl.Pulse, sink_index: int):
425425
error_state = 1
426426
if not 0 <= sink_index < len(self._sink_list):
427-
logger.error(f"Sink index '{sink_index}' out of range (0..{len(self._sink_list)-1}). "
427+
logger.error(f"Sink index '{sink_index}' out of range (0..{len(self._sink_list) - 1}). "
428428
f"Did you configure your secondary output device?")
429429
else:
430430
# Before we switch the sink, check the new sinks volume levels...

src/jukebox/run_configure_audio.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def query_sinks(pulse_config: PaConfigClass): # noqa: C901
192192
if sink_is_equalizer(primary_signal_chain[sidx - 1]):
193193
pulse_config.enable_equalizer = False
194194
print(f"\n*** Equalizer already configured for '{pulse_config.primary}' with name\n"
195-
f" '{primary_signal_chain[sidx-1].name}'. Shifting entry point...")
195+
f" '{primary_signal_chain[sidx - 1].name}'. Shifting entry point...")
196196
pulse_config.primary = primary_signal_chain[sidx - 1].name
197197
sidx -= 1
198198
except ValueError:

0 commit comments

Comments
 (0)