Skip to content

Commit 224c540

Browse files
committed
Add workflow for python code style
1 parent 1dc3de4 commit 224c540

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/codestyle.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,13 @@ jobs:
6969
webapp/public
7070
webapp/config
7171
72+
pycodestyle:
73+
runs-on: ubuntu-latest
74+
steps:
75+
- uses: actions/checkout@v4
76+
- name: Download pycodestyle python file
77+
run: >
78+
curl -L -o /tmp/pycodestyle.py 'https://github.com/PyCQA/pycodestyle/raw/refs/tags/2.12.1/pycodestyle.py'
79+
- name: Check codestyle in python files
80+
run: >
81+
python3 /tmp/pycodestyle.py --exclude='./example_problems/,./doc/,./gitlab/' --max-line-length 120 --show-pep8 --show-source .

0 commit comments

Comments
 (0)