Skip to content

Commit

Permalink
Make it work on Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
tomquist committed Jun 22, 2024
1 parent d2a9680 commit 9e89eb2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
python-version: '3.7'

- name: Install dependencies
run: |
pip install pipenv
pipenv install --dev
- name: Verify flake8 installation
run: pipenv run flake8 --version

- name: Validate Python code with flake8
run: pipenv run flake8 --select BLK *.py

Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ flake8-black = "*"
pytest = "*"

[requires]
python_version = "3.12"
python_version = "3.7"
4 changes: 2 additions & 2 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions smartmeter.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Powermeter:
def wait_for_message(self, timeout=120):
pass

def get_powermeter_watts(self) -> [int, ...]:
def get_powermeter_watts(self):
raise NotImplementedError()


Expand Down Expand Up @@ -98,7 +98,7 @@ def get_rpc_json(self, path):
timeout=10,
).json()

def get_powermeter_watts(self) -> [int, ...]:
def get_powermeter_watts(self):
raise NotImplementedError()


Expand Down

0 comments on commit 9e89eb2

Please sign in to comment.