Merge pull request #76 from mitkotak/main #38
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: "Black and Flake8" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
cache-dependency-path: | | |
pyproject.toml | |
- name: Lint using black | |
uses: psf/black@stable | |
- name: Install flake8 | |
run: | | |
pip install flake8 Flake8-pyproject | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --show-source --statistics |