-
Notifications
You must be signed in to change notification settings - Fork 681
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Samet Akcay <samet.akcay@intel.com>
- Loading branch information
1 parent
a294377
commit 157b08e
Showing
5 changed files
with
60 additions
and
62 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
name: 'Pre-commit Checks' | ||
description: 'Runs all pre-commit hooks' | ||
inputs: | ||
files: | ||
description: 'Files to check' | ||
required: false | ||
default: '.' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- run: | | ||
pip install pre-commit | ||
pre-commit run --files ${{ inputs.files }} | ||
shell: bash |
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,14 @@ | ||
name: 'Ruff Linter' | ||
description: 'Runs Ruff linting' | ||
inputs: | ||
files: | ||
description: 'Files to check' | ||
required: false | ||
default: '.' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- run: | | ||
pip install ruff | ||
ruff check ${{ inputs.files }} | ||
shell: bash |
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,14 @@ | ||
name: 'Bandit Security Check' | ||
description: 'Runs Bandit security checks through pre-commit' | ||
inputs: | ||
files: | ||
description: 'Files to check' | ||
required: false | ||
default: '.' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- run: | | ||
pip install pre-commit | ||
pre-commit run bandit --files ${{ inputs.files }} | ||
shell: bash |
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