Skip to content

Commit

Permalink
github workflow: Add 'black' and 'bandit' linters
Browse files Browse the repository at this point in the history
Add the [black](https://black.readthedocs.io/) linter.
  • Loading branch information
matthope committed Mar 19, 2023
1 parent ed4f121 commit 947e34e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Security check - Bandit

on: push

jobs:
build:
name: Python ${{ matrix.python-version }} ${{ matrix.os }}
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3

- name: Security check - Bandit
uses: ./
with:
ignore_failure: true
project_path: .
python_version: ${{ matrix.python-version }}

- name: Security check report artifacts
uses: actions/upload-artifact@v3
with:
name: Security report
path: output/security_report.txt

strategy:
matrix:
os:
- ubuntu-latest
python-version:
- 3.6.10

15 changes: 15 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Lint

on:
- push
- pull_request

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: --check --verbose --diff --skip-string-normalization --line-length 400

0 comments on commit 947e34e

Please sign in to comment.