Skip to content

Commit c31badf

Browse files
committed
add flake8 linting workflow for Python code
1 parent ced42db commit c31badf

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
name: flake8 Lint
3+
4+
on: [push]
5+
6+
jobs:
7+
flake8-lint:
8+
runs-on: ubuntu-latest
9+
name: Lint
10+
steps:
11+
- name: Check out source repository
12+
uses: actions/checkout@v4
13+
- name: Set up Python environment
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: "3.10"
17+
- name: flake8 Lint
18+
uses: py-actions/flake8@v2
19+
with:
20+
ignore: "F401,W503"
21+
max-line-length: "120"

0 commit comments

Comments
 (0)