diff --git a/.github/workflows/pylint.yaml b/.github/workflows/pylint.yaml new file mode 100644 index 0000000..29c5cd5 --- /dev/null +++ b/.github/workflows/pylint.yaml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +jobs: + test: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v3" + + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements-dev.txt + + - name: pytest + run: | + pylint $(git ls-files '*.py') \ No newline at end of file diff --git a/requirements-dev.txt b/requirements-dev.txt index 92cb973..98c8509 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,4 @@ backports.pbkdf2==0.1 pycryptodome==3.17 -homeassistant==2023.9.0 \ No newline at end of file +homeassistant==2023.9.0 +pylint \ No newline at end of file