Skip to content

Commit

Permalink
Update and rename python.yml to flake8.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindvnair99 authored Jun 24, 2021
1 parent a71390e commit 962a477
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 27 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint with flake8

on: push

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set up Python 3.8
uses: actions/setup-python@main
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools flake8
- 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
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
27 changes: 0 additions & 27 deletions .github/workflows/python.yml

This file was deleted.

0 comments on commit 962a477

Please sign in to comment.