Skip to content

Commit

Permalink
Add Linter and Code Analysis
Browse files Browse the repository at this point in the history
This patch adds a GitHub Actions workflow to run `flake8` and `bandit`
on the code on every push and pull request.
  • Loading branch information
lkiesow committed Sep 27, 2023
1 parent 4b6c92c commit ea44ac3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: lint

on:
- push
- pull_request

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: set up python
uses: actions/setup-python@v2
with:
python-version: '3.11'

- name: install Python dependencies
run: |
pip install -r requirements.txt
pip install bandit flake8
- name: run flake8
run: flake8

- name: run bandit
run: bandit -r proteuscmd

0 comments on commit ea44ac3

Please sign in to comment.