Skip to content

Variational formulation and out-of-plane motion #39

Variational formulation and out-of-plane motion

Variational formulation and out-of-plane motion #39

Workflow file for this run

name: Static code analysis 🔎
on:
push:
branches-ignore: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_call:
jobs:
pylint:
name: Static code analysis 🔎
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pylint
python -m pip install -e ".[dev]"
- name: Run pylint analysis
# Using .pylintrc with comprehensive configuration for scientific code
run: |
python -m pylint --output-format=parseable --output=pylint-report.txt weac/ tests/
echo
echo 'Error type counts:'
grep -oP '[A-Z]\d+\([a-z\-]+\)' pylint-report.txt | sort | uniq -c | sort -nr
echo
echo 'Errors per file:'
grep -oP '^[\w\-\/]+\.py' pylint-report.txt | sort | uniq -c | sort -nr
echo
echo 'Total errors:'
grep -oP '^[\w\-\/]+\.py' pylint-report.txt | wc -l
echo
grep 'Your code' pylint-report.txt