Skip to content

Commit

Permalink
Create flake8.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartappli authored May 19, 2024
1 parent f239651 commit 2003273
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Flake8 Lint

on: [push, pull_request]

concurrency:
group: flake8-${{ github.event_name == 'pull_request' && format('{0}-{1}', github.workflow, github.event.pull_request.number) || github.workflow_ref }}
cancel-in-progress: true

jobs:
flake8-lint:
runs-on: ubuntu-latest
name: Flake8 Lint
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
update-pip: "true"
max-line-length: "125"
plugins: "flake8-bugbear"

0 comments on commit 2003273

Please sign in to comment.