Skip to content

Commit 21ed392

Browse files
committed
chore(ci): add flake8 lint workflow and fix minor lint issue
- Add GitHub Actions workflow to run flake8 on push and PR - Align Python version with Dockerfile (3.8) - Fix unused variable in exception handler to satisfy flake8 Refs: #59
1 parent af9295e commit 21ed392

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lint (flake8)
2+
3+
on:
4+
push:
5+
branches: [ "**" ]
6+
pull_request:
7+
branches: [ "**" ]
8+
9+
jobs:
10+
flake8:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.8'
20+
21+
- name: Install flake8
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install flake8
25+
26+
- name: Run flake8
27+
run: |
28+
flake8 .

github-dork.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def search_wrapper(gen):
2828
yield next(gen)
2929
except StopIteration:
3030
return
31-
except github.exceptions.ForbiddenError as e:
31+
except github.exceptions.ForbiddenError:
3232
search_rate_limit = gh.rate_limit()['resources']['search']
3333
# limit_remaining = search_rate_limit['remaining']
3434
reset_time = search_rate_limit['reset']

0 commit comments

Comments
 (0)