Skip to content

Commit 0cfd2cc

Browse files
authored
Merge pull request #62 from DivInstance/chore/add-flake8-ci
chore(ci): add flake8 lint workflow and fix minor lint issue
2 parents af9295e + 21ed392 commit 0cfd2cc

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)