Skip to content

Commit

Permalink
Add Python 3.12 to Action (#2320)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
s-martin authored Apr 8, 2024
1 parent aadff23 commit 7c7024c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[flake8]
max-line-length = 127
ignore =
# continuation line over-indented for hanging indent
E126,
# continuation line over-indented for visual indent
E127,
# continuation line under-indented for visual indent
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage_future3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion src/jukebox/components/controls/common/evdev_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def run(self):
self._connect()
except FileNotFoundError as e:
# This error occurs, if opening the bluetooth input device fails
logger.debug(f"{e} (attempt: {idx+1}/{self.open_retry_cnt}). Retrying in {self.open_retry_delay}")
logger.debug(f"{e} (attempt: {idx + 1}/{self.open_retry_cnt}). Retrying in {self.open_retry_delay}")
time.sleep(self.open_retry_delay)
except AttributeError as e:
# This error occurs, when the device can be found, but does not have the mandatory keys
Expand Down
2 changes: 1 addition & 1 deletion src/jukebox/components/volume/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def _publish_outputs(self, pulse_inst: pulsectl.Pulse):
def _set_output(self, pulse_inst: pulsectl.Pulse, sink_index: int):
error_state = 1
if not 0 <= sink_index < len(self._sink_list):
logger.error(f"Sink index '{sink_index}' out of range (0..{len(self._sink_list)-1}). "
logger.error(f"Sink index '{sink_index}' out of range (0..{len(self._sink_list) - 1}). "
f"Did you configure your secondary output device?")
else:
# Before we switch the sink, check the new sinks volume levels...
Expand Down
2 changes: 1 addition & 1 deletion src/jukebox/run_configure_audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def query_sinks(pulse_config: PaConfigClass): # noqa: C901
if sink_is_equalizer(primary_signal_chain[sidx - 1]):
pulse_config.enable_equalizer = False
print(f"\n*** Equalizer already configured for '{pulse_config.primary}' with name\n"
f" '{primary_signal_chain[sidx-1].name}'. Shifting entry point...")
f" '{primary_signal_chain[sidx - 1].name}'. Shifting entry point...")
pulse_config.primary = primary_signal_chain[sidx - 1].name
sidx -= 1
except ValueError:
Expand Down

0 comments on commit 7c7024c

Please sign in to comment.