added progress bar #56
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: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install flake8 | |
pip install flake8-docstrings | |
# stop if there are Python syntax errors or undefined names | |
flake8 $(git ls-files '*.py') --count --select=E9,F63,F7,F82 --show-source --statistics | |
# check there are docstrings and that line width does not exceed reasonable limit | |
flake8 $(git ls-files '*.py') --count --max-complexity=12 --max-line-length=160 --ignore=D100,D205,D210,D400,D401,W504,E111 --statistics |