forked from NHERI-SimCenter/pelicun
-
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.
Can't automatically format code in a PR. Will instead ask contributors to format their code if the workflow fails. For code that is pushed, the auto-formatting workflow works, so we keep it.
- Loading branch information
1 parent
c99f2fa
commit 243d5e9
Showing
2 changed files
with
19 additions
and
1 deletion.
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,19 @@ | ||
name: Format and lint code | ||
on: | ||
pull_request: | ||
permissions: | ||
contents: write | ||
jobs: | ||
format_and_lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
- name: Run Black | ||
uses: psf/black@stable | ||
- name: Run Flake8 | ||
run: flake8 . |
1 change: 0 additions & 1 deletion
1
.github/workflows/format_and_lint.yaml → .github/workflows/format_and_lint_push.yaml
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: Format and lint code | ||
on: | ||
push: | ||
pull_request: | ||
permissions: | ||
contents: write | ||
jobs: | ||
|