Skip to content

Add pylint to workflows #8

Add pylint to workflows

Add pylint to workflows #8

name: Static Code Analysis
on: pull_request
jobs:
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
pip install -r css-reports/requirements.txt
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy
pip install -r css-reports/requirements.txt
mypy --install-types
- name: Analysing the code with mypy
run: mypy .
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
pip install -r css-reports/requirements.txt
pip install ruff
- name: Analysing the code with ruff
run: ruff check --no-fix --output-format=github