Skip to content

Commit 25a17c4

Browse files
authored
Lint the source code with Fortitude (#740)
1 parent a8df793 commit 25a17c4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/lint-source.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Lint Source Code
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
lint:
7+
name: Lint Source Code
8+
runs-on: macos-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Install Fortitude
14+
run: pip install fortitude-lint ansi2txt
15+
16+
- name: Lint the source code
17+
run: fortitude check --ignore=E001,S001,S101,M011,F001,S041,T001 ./src/*/* &> lint.txt || true
18+
19+
- name: Sanitize
20+
run: cat lint.txt | ansi2txt > lint2.txt
21+
22+
- name: Output Summary
23+
run: cat lint2.txt << EOF > $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)