labels can be None #689
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 Linter | |
on: | |
push: | |
paths: | |
- "**.py" | |
- "**.cfg" | |
- "**.tac" | |
jobs: | |
lint: | |
name: flake8 | |
# TODO: should be ubuntu-latest, but actions/setup-python doesn't work with ubuntu 22 just yet | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4.3.0 | |
with: | |
python-version: 3.8 | |
- name: Set up flake8 annotations | |
uses: rbialon/flake8-annotations@v1 | |
- name: Run flake8 | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install flake8 | |
flake8 . |