Adding flake8 for python linting

This commit is contained in:
Jake Herbst
2022-05-10 20:41:22 -04:00
parent dbb14cae69
commit 6067415a8c
+25
View File
@@ -0,0 +1,25 @@
name: CI Jobs
on: pull_request
jobs:
python-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.7.x'
cache: 'pip'
architecture: 'x64'
- name: Install flake8
run: pip install flake8
- name: Run Flake8 Lint
uses: py-actions/flake8@v2
with:
exclude: "./scripts/daily_plot.py,./scripts/server.py,./scripts/plotly_streamlit.py,./scripts/privacy_server.py"