Skip to content

chore: Publish version 0.7.1 #352

chore: Publish version 0.7.1

chore: Publish version 0.7.1 #352

name: Lint Python with flake8
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
name: Lint Python with flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Ubuntu packages
run: |
sudo apt install -y python3-pip
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install flake8
# pip install wemake-python-styleguide # disabled as way too strict
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# E203: Spaces around colons in array indexing collides with black-formatting
# E402: Imports always on top collide with the need to set the python module search path in some places
# W503: Collides with black formatting
flake8 . --count --max-complexity=10 --max-line-length=200 --statistics --ignore=E203,E402,W503