doc: Remove unnecessary build configuration in docker compose #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 == 'false' || github.event_name == 'schedule' | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 #v4.2.0 | |
- | |
name: Set up Python | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 #v5.2.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 |