Skip to content

Updating logging script and Adding automation workflows #31

Updating logging script and Adding automation workflows

Updating logging script and Adding automation workflows #31

Workflow file for this run

name: lint-python-code
on:
pull_request:
branches: [main]
paths: ['**.py']
workflow_call:
jobs:
python-linter:
runs-on: ubuntu-latest
steps:
- name: Checking out repo
uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install flake8
- name: Lint Python Code
run: |
flake8 . --select=E901,E999,F821,F822,F823 --exclude=__init__.py
env:
FLAKE8_OPTIONS: "--ignore=E203,W503"