Skip to content

Fix spelling mistakes in challenge/views.py #462

Fix spelling mistakes in challenge/views.py

Fix spelling mistakes in challenge/views.py #462

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Flake8
on:
push:
branches: [master, main, v3.0.0-pre]
paths:
- "**.py"
pull_request:
branches: [master, main, v3.0.0-pre]
paths:
- "**.py"
jobs:
lint:
name: Lint Python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install --upgrade 'flake8>=7.3.0'
- name: Flake8 — syntax errors and undefined names (blocking)
run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Flake8 — full lint (non-blocking)
run: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics