Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre-merge linting #1

Merged
merged 4 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
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
30 changes: 30 additions & 0 deletions .github/workflows/premerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'Check inbound changes'

# Triggers
on: [push, workflow_dispatch]

# Jobs
jobs:

flake8-run:
# Runs flake8 as an alternative, faster(?) linter

runs-on: [ubuntu-latest]
environment: 'CI'

name: Run flake8
steps:
- name: Check out source repository
uses: actions/checkout@v4

- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Run flake8
uses: py-actions/flake8@v2
with:
max-line-length: "120"
exclude: .git,__pycache__,venv
plugins: "flake8-bugbear flake8-black"
Loading