Skip to content

Change str.format to f-strings #44

Change str.format to f-strings

Change str.format to f-strings #44

Workflow file for this run

name: Lint with flake8
on:
push:
paths:
- '.github/workflows/python-flake8.yml'
- 'python/**'
- 'setup.py'
jobs:
lint:
name: Lint Python code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install flake8
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8 for syntax errors
run: |
pip install flake8
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics