Skip to content

Commit 15ad045

Browse files
author
Pedro Rodrigues
committed
add lint
1 parent 9350edd commit 15ad045

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/black-format.yml

Whitespace-only changes.

.github/workflows/flake8-lint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Lint Python code with Flake8
2+
3+
on:
4+
push:
5+
paths:
6+
- 'src/**/*.py'
7+
pull_request:
8+
paths:
9+
- 'src/**/*.py'
10+
11+
jobs:
12+
flake8-lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.11'
22+
23+
- name: Install Flake8
24+
run: pip install flake8
25+
26+
- name: Run Flake8
27+
run: flake8 src/

0 commit comments

Comments
 (0)