Skip to content

docs: update changelog #78

docs: update changelog

docs: update changelog #78

name: Python Linting
on:
workflow_dispatch:
pull_request:
push:
branches:
- "master"
paths:
- "**/*"
- "!.github/**" # Important: Exclude PRs related to .github from auto-run
- "!.github/workflows/**" # Important: Exclude PRs related to .github/workflows from auto-run
- "!.github/actions/**" # Important: Exclude PRs related to .github/actions from auto-ru
permissions:
contents: read
jobs:
check_paths:
uses: ./.github/workflows/check_paths.yml
lint:
needs: check_paths
if: needs.check_paths.outputs.githubfolder != 'true' || github.event_name == 'schedule'
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
-
name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b #v5.3.0
with:
python-version: '3.12'
-
name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install pylint
pip install -r src/requirements.txt
-
name: Lint with flake8
run: |
flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 src --count --max-complexity=10 --max-line-length=120 --statistics
-
name: Lint with Pylint
run: |
pylint src