Skip to content

Commit

Permalink
[chore] Run flake8 for each pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
ftnext committed Apr 2, 2024
1 parent 112c0c4 commit c3b3315
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Static analysis

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
flake8:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install flake8
- name: Run flake8
run: |
# ignore errors for long lines and multi-statement lines
python -m flake8 --ignore=E501,E701,W503 speech_recognition tests examples setup.py

0 comments on commit c3b3315

Please sign in to comment.