Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/pr_audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: PR Audit

on: [pull_request]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Check code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install tools
run: |
pip install flake8 black isort reviewdog

- name: Run flake8 for linting
uses: reviewdog/action-flake8@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
reporter: github-pr-review
level: warning
fail_on_error: true
filter_mode: diff_context

- name: Run Black
run: black . --check

- name: Run isort
run: isort . --check-only


Loading