Skip to content

Commit

Permalink
bump dependencies & supported Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
renekliment committed Oct 11, 2024
1 parent 9ed1e46 commit 34c8cb4
Show file tree
Hide file tree
Showing 10 changed files with 169 additions and 123 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install pipenv
pipenv install --dev
- name: Analysing the code with pylint
run: |
pipenv run lint
- name: Checking config files load
run: |
pipenv run yamlcheck
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

6 changes: 4 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ verify_ssl = true

[dev-packages]
pylint = "*"
tomli = "*" # for pylint on Python 3.10
typing_extensions = "*" # for pylint on Python 3.10
python-mpd2 = "*"

[packages]
Expand All @@ -13,8 +15,8 @@ paho-mqtt = "*"
PyYAML = "*"

[requires]
#python_version = "3.7"
#python_version = ">=3.10"

[scripts]
lint = "pylint --rcfile=pylintrc src"
yamlcheck = "python -c \"import yaml; yaml.load(open('src/config.template.yaml')); yaml.load(open('src/demos/config.demo_mpd_volume_thermostat.template.yaml')); yaml.load(open('src/demos/config.demo_remote_control_socket.template.yaml'));\""
yamlcheck = "python -c \"import yaml; yaml.load(open('src/config.template.yaml', encoding='utf-8'), Loader=yaml.SafeLoader); yaml.load(open('src/demos/config.demo_mpd_volume_thermostat.template.yaml', encoding='utf-8'), Loader=yaml.SafeLoader); yaml.load(open('src/demos/config.demo_remote_control_socket.template.yaml', encoding='utf-8'), Loader=yaml.SafeLoader);\""
195 changes: 114 additions & 81 deletions Pipfile.lock

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

Loading

0 comments on commit 34c8cb4

Please sign in to comment.