Skip to content

Commit

Permalink
add python linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Flanker-shyam committed Jan 30, 2024
1 parent e824da4 commit 0a698f5
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/python-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: python-linter-check
on:
push:
branches: [main, master]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: pull latest commit
uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v3
with:
python-version: 3.6

- name: Install depenencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install pylint
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name : Lint with flake8
run: |
flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 src --count --max-complexity=10 --max-line-lemngth=79 --statistics
- name: Lint with pyLint
run: |
pylint src

0 comments on commit 0a698f5

Please sign in to comment.