From 6067415a8ca7cc4e2d1e01843b14142aa645e4c7 Mon Sep 17 00:00:00 2001 From: Jake Herbst Date: Tue, 10 May 2022 20:41:22 -0400 Subject: [PATCH] Adding flake8 for python linting --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..09c1f68 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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"