Skip to content

Commit e10d644

Browse files
committed
🚨 Add CI for linting
1 parent 5937900 commit e10d644

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

‎.github/workflows/flake8-link.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Flake8 Lint
2+
3+
on:
4+
push:
5+
branches: [ main, dev ]
6+
pull_request:
7+
branches: [ main, dev ]
8+
9+
jobs:
10+
flake8-lint:
11+
name: Flake8 Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.x'
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install flake8
23+
- name: Run flake8
24+
run: |
25+
flake8 . --max-line-length=150 --ignore=E402,E731,F541,W291,E122,E127,F401,E266,E241,C901,E741,W293,F811,W503,E203,F403,F405

0 commit comments

Comments
 (0)