Skip to content

Commit fc8f44c

Browse files
authored
Add flake8 linter for Python scripts in the whole repository (learning-process#125)
1 parent 0ba90bd commit fc8f44c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: .github/workflows/static-analysis.yml

+10
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,13 @@ jobs:
1010
- uses: DoozyX/[email protected]
1111
with:
1212
source: '.'
13+
python-lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Setup environment
18+
run: |
19+
python3 -m pip install flake8
20+
- name: Run linter
21+
run: |
22+
python3 -m flake8 .

Diff for: setup.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
max-line-length = 120
3+
exclude =
4+
3rdparty

0 commit comments

Comments
 (0)