Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lint (flake8)

on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]

jobs:
flake8:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'

- name: Install flake8
run: |
python -m pip install --upgrade pip
pip install flake8

- name: Run flake8
run: |
flake8 .
2 changes: 1 addition & 1 deletion github-dork.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def search_wrapper(gen):
yield next(gen)
except StopIteration:
return
except github.exceptions.ForbiddenError as e:
except github.exceptions.ForbiddenError:
search_rate_limit = gh.rate_limit()['resources']['search']
# limit_remaining = search_rate_limit['remaining']
reset_time = search_rate_limit['reset']
Expand Down