Skip to content

doc:add shields.io badges #37

doc:add shields.io badges

doc:add shields.io badges #37

Workflow file for this run

name: Linters
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
lint-python:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r src/requirements.txt
- name: Install linters
run: |
python -m pip install pylint black
- name: Lint Python code with black
run: |
black --diff --skip-string-normalization --line-length 120 src/
- name: Lint Python code with Pylint
run: |
cd src/
pylint --disable=R,C,W1203,W0105 .
- name: Lint Dockerfile with hadolint
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile
failure-threshold: error
ignore: DL3008