-
Notifications
You must be signed in to change notification settings - Fork 15
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 #46 from wpbonelli/ruff
chore: switch to ruff, use devtools fixtures for tests
- Loading branch information
Showing
15 changed files
with
122 additions
and
159 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 |
---|---|---|
|
@@ -21,10 +21,8 @@ jobs: | |
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
|
||
# check out repo | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
|
@@ -45,19 +43,16 @@ jobs: | |
run: | | ||
python -c "import modflowapi; print(modflowapi.__version__)" | ||
lint: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
if: github.event_name != 'schedule' | ||
strategy: | ||
fail-fast: false | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
if: github.event_name != 'schedule' | ||
steps: | ||
# check out repo | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
|
@@ -78,20 +73,11 @@ jobs: | |
python -m pip install --upgrade pip | ||
pip install -e .[lint] | ||
- name: Run black | ||
run: | | ||
echo "if black check fails run" | ||
echo " black ./modflowapi" | ||
echo "and then commit the changes." | ||
black --check ./modflowapi | ||
- name: Run flake8 | ||
run: | | ||
flake8 --count --show-source --exit-zero ./modflowapi | ||
- name: Lint | ||
run: ruff check . | ||
|
||
- name: Run pylint | ||
run: | | ||
pylint --jobs=2 --errors-only --exit-zero ./modflowapi | ||
- name: Check format | ||
run: ruff format . --check | ||
|
||
autotest_extensions: | ||
name: modflowapi extensions autotests | ||
|
@@ -105,9 +91,7 @@ jobs: | |
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
# check out repo | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
|
@@ -148,9 +132,7 @@ jobs: | |
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
# check out repo | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
|
@@ -192,9 +174,7 @@ jobs: | |
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
# check out repo | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
|
@@ -212,12 +192,12 @@ jobs: | |
pip install git+https://[email protected]/MODFLOW-USGS/modflow-devtools@develop | ||
pip install .[test] | ||
- name: Install modflow executables | ||
- name: Install modflow6 nightly build | ||
uses: modflowpy/install-modflow-action@v1 | ||
with: | ||
path: ${{ github.workspace }}/autotest | ||
repo: modflow6-nightly-build | ||
|
||
- name: Run autotests | ||
working-directory: ./autotest | ||
shell: bash -l {0} | ||
|
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 |
---|---|---|
|
@@ -130,3 +130,8 @@ dmypy.json | |
|
||
# pycharm | ||
.idea/ | ||
|
||
# library files | ||
**.dll | ||
**.so | ||
**.dylib |
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
Oops, something went wrong.