-
Notifications
You must be signed in to change notification settings - Fork 17
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 #841 from OasisLMF/release/1.28.0
Release 1.28.0
- Loading branch information
Showing
64 changed files
with
2,006 additions
and
3,211 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
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,39 @@ | ||
# This workflow performs code quality checks like: | ||
# - PEP8: the workflow fails if code is not PEP8 compliant | ||
# - flake8: the problems identified by flake 8 are listed but the workflow | ||
# presently doesn't fail if flake reports errors. | ||
|
||
name: Code Quality | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
max_line_length: 150 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: install pip tools | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade pip-tools | ||
- name: install code quality tools | ||
run: pip install --upgrade autopep8 flake8 | ||
|
||
- name: Run (partial) flake8 | ||
if: ${{ ! cancelled() }} | ||
run: flake8 --select F401,F522,F524,F541 --show-source src/ | ||
|
||
- name: check PEP8 compliance | ||
if: ${{ ! cancelled() }} | ||
id: autopep8 | ||
run: | | ||
autopep8 --diff --exit-code --recursive --max-line-length ${{ env.max_line_length }} --ignore E402 . |
Oops, something went wrong.