-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python QC workflow (Execute Order #66)
* Add initial linting workflow * Update workflow - no self installation * Update to make pydocstyle --numpy compliant. * Rename workflow to python_qc, remove mypy and pylint. * Update to only apply to PRs to main.
- Loading branch information
1 parent
6a3d5da
commit abfa5ca
Showing
7 changed files
with
34 additions
and
9 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,32 @@ | ||
name: python-code-qc | ||
|
||
on: | ||
# run on every push to main | ||
push: | ||
branches: | ||
- main | ||
# run on every push (not commit) to a PR, plus open/reopen | ||
pull_request: | ||
types: | ||
- synchronize | ||
- opened | ||
- reopened | ||
|
||
jobs: | ||
various: | ||
name: Python Code QC (Black, pydocstyle) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
- run: pip install black pydocstyle | ||
|
||
# annotate each step with `if: always` to run all regardless | ||
- name: Assert that code matches Black code style | ||
if: always() | ||
uses: psf/black@stable | ||
- name: Lint with pydocstyle | ||
if: always() | ||
run: pydocstyle --convention=numpy ./ |
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
Binary file not shown.
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
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