add requirements for linting

This commit is contained in:
Josh Lay 2023-10-14 22:49:55 -05:00
parent 8711ee651b
commit 0420088fbf
Signed by: jlay
GPG key ID: B265E45CACAD108A
2 changed files with 8 additions and 3 deletions

View file

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: ["3.8", "3.9", "3.10"] python-version: ["3.8", "3.9", "3.10", "3.11"]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
@ -16,8 +16,9 @@ jobs:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python3 -m pip install --upgrade pip
pip install pylint pip3 install -r requirements.txt
pip3 install pylint
- name: Analysing the code with pylint - name: Analysing the code with pylint
run: | run: |
pylint $(git ls-files '*.py') pylint $(git ls-files '*.py')

4
requirements.txt Normal file
View file

@ -0,0 +1,4 @@
i3ipc
xdg
systemd-python
PyYAML