-
Notifications
You must be signed in to change notification settings - Fork 2
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 #7 from advanced-security/pyre
Support Pyre type checker
- Loading branch information
Showing
6 changed files
with
145 additions
and
18 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
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,28 @@ | ||
name: Python Lint Workflow | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
linter: ['flake8', 'pylint', 'ruff', 'mypy', 'pytype', 'pyright', 'fixit', 'pyre'] | ||
python-version: ['3.10'] | ||
os: [windows-latest] # this will fail on Windows currently | ||
fail-fast: false | ||
|
||
steps: | ||
# install dependencies for all linters, then run the linter, so we don't get import failures when the linters scan the code | ||
# upgrade pip, so that we can install flake8_sarif_formatter properly from the git repo | ||
- uses: actions/checkout@v4 | ||
- name: Install pip dependencies | ||
run: | | ||
python3 -mpip install -q --upgrade pip | ||
python3 -mpip install -q flake8 pylint ruff mypy pytype pyright fixit pyre-check | ||
python3 -mpip install -q flake8-sarif-formatter | ||
- name: Run Python Lint | ||
uses: advanced-security/python-lint-code-scanning-action@main | ||
with: | ||
linter: ${{ matrix.linter }} | ||
python-version: ${{ matrix.python-version }} |
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 |
---|---|---|
|
@@ -2,4 +2,7 @@ build | |
*.egg-info | ||
.ruff_cache | ||
*.sarif | ||
*.pyc | ||
*.pyc | ||
.pyre | ||
.pytype | ||
.mypy_cache |
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
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
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