This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
Merge pull request #5 from daedalus/sourcery/master #113
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: lint_python | |
on: [push, pull_request] | |
jobs: | |
lint_python: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.python-version }}-pip- | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v1 | |
- name: Lint with flake8 | |
run: | | |
pip install flake8 | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics |