forked from BedrockStreaming/hsdo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request BedrockStreaming#6 from christian-vdz/ci/hsdo/add_…
…python_linter ci(hsdo): add python linter
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: flake8 Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
flake8-lint: | ||
runs-on: ubuntu-latest | ||
name: Lint | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
|
||
# Install specific flake8 version (this step is not required. Default is "latest"). | ||
- run: pip install flake8==6.0.0 | ||
# Install flake8 extensions (this step is not required. Default is "None"). | ||
- run: pip install flake8-docstrings flake8-simplify flake8-unused-arguments flake8-quotes flake8-isort flake8-mypy | ||
- name: flake8 Lint | ||
uses: reviewdog/action-flake8@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |