Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python 3.12 to Action #2320

Merged
merged 8 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading