Skip to content

Commit

Permalink
Fix Workflow Actions flake8 (future3) (#1989)
Browse files Browse the repository at this point in the history
* flake8 Version pin >= 4.0.0

* flake8 corrections

* update action versions

* Updated pyton version matrix

Pythen versions 3.7 - 3.11 added
add quotation for correct intpretation
  • Loading branch information
AlvinSchiller authored Apr 12, 2023
1 parent a8c56b0 commit 0250733
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pythonpackage_future3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.9]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sphinx
sphinx_rtd_theme

# Code quality
flake8
flake8>=4.0.0
pytest
mock

Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def get_batt_voltage(self):

@plugs.tag
def get_batt_status(self):
return(self.batt_status)
return (self.batt_status)

def publish_status(self):
batt_voltage_mV_raw = self.get_batt_voltage()
Expand Down
2 changes: 1 addition & 1 deletion src/jukebox/jukebox/playlistgenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def __init__(self, music_library_base_path='/'):
self.special_handlers = {'livestream.txt': decode_livestream,
'podcast.txt': decode_podcast,
# Ignore all other .txt files
'.txt': lambda f, p, l: None,
'.txt': lambda _f, _p, _l: None,
'.m3u': decode_m3u}
self.default_handler = decode_musicfile

Expand Down

0 comments on commit 0250733

Please sign in to comment.