-
Notifications
You must be signed in to change notification settings - Fork 10
Sync with main #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Sync with main #65
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
370c986
virtual_ship package (#22)
surgura 6a0c463
CI, formatting, linting (#32)
surgura 8a9dd21
Basic test (#33)
surgura ae45956
Cleanup old files or move to lesson_material directory (#34)
surgura 14ac8d7
Seperate instruments (#35)
surgura fafe1cb
Ship underwater st test (#36)
surgura f92839d
ADCP test (#37)
surgura 7f768f1
Ctd cleanup and test (#38)
surgura 6d976bd
Drifter test (#39)
surgura e8558f3
Argo test (#40)
surgura 0ee718d
Config revision (#41)
surgura fb43d92
Make test_drifter more complex by deploying non-overlapping times (#42)
erikvansebille 66c12ad
Sail by waypoint (#46)
surgura 789e761
move lat lon test into location class (#49)
surgura 9d1792c
verify waypoints are on water (#48)
surgura 72167ef
CTD noise and CNV output format (#50)
surgura 02252e0
Conda recipe and pruning of dependencies (#56)
surgura 5224e70
52 schedule to and from yaml (#55)
ammedd 5091a7d
ADCP make realistic (#57)
surgura 842ae2f
interactive loop (#60)
surgura File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,46 @@ | ||
| name: ci | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| env: | ||
| PACKAGE: virtual_ship | ||
| TESTS: tests | ||
|
|
||
| jobs: | ||
| codetools: | ||
| runs-on: ubuntu-20.04 | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5.1.0 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: install | ||
| run: pip install ".[dev]" | ||
| - name: flake8 | ||
| run: flake8 ./$PACKAGE ./$TESTS | ||
| - name: pydocstyle | ||
| run: pydocstyle ./$PACKAGE | ||
| - name: sort-all | ||
| run: | | ||
| find ./$PACKAGE -type f -name '__init__.py' -print0 | xargs -0 sort-all | ||
| [[ -z $(git status -s) ]] | ||
| git checkout -- . | ||
| - name: black | ||
| run: black --diff --check ./$PACKAGE ./$TESTS | ||
| - name: isort | ||
| run: isort --check-only --diff ./$PACKAGE ./$TESTS | ||
|
|
||
| tests: | ||
| runs-on: ubuntu-20.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5.1.0 | ||
| with: | ||
| python-version: 3.12 | ||
| - name: install | ||
| run: pip install ".[dev]" | ||
| - name: run_tests | ||
| run: pytest --cov=virtual_ship tests |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 @@ | ||
| #!/bin/sh | ||
|
|
||
| # Runs all codetools and attempts to apply fixes wherever possible. | ||
| # Not suitable for the CI as that should not make any changes. | ||
|
|
||
| set -e | ||
|
|
||
| # Set working directory to the directory of this script. | ||
| cd "$(dirname "$0")" | ||
|
|
||
| PACKAGE=virtual_ship | ||
| TESTS=tests | ||
|
|
||
| echo "--------------" | ||
| echo "flake8" | ||
| echo "--------------" | ||
| flake8 ./$PACKAGE ./$TESTS | ||
| # darglint is ran as a plugin for flake8. | ||
|
|
||
| echo "--------------" | ||
| echo "pydocstyle" | ||
| echo "--------------" | ||
| pydocstyle ./$PACKAGE ./$TESTS | ||
|
|
||
| echo "--------------" | ||
| echo "sort-all" | ||
| echo "--------------" | ||
| find ./$PACKAGE -type f -name '__init__.py' -print0 | xargs -0 sort-all | ||
|
|
||
| echo "--------------" | ||
| echo "black" | ||
| echo "--------------" | ||
| black ./$PACKAGE ./$TESTS | ||
|
|
||
| echo "--------------" | ||
| echo "isort" | ||
| echo "--------------" | ||
| isort ./$PACKAGE ./$TESTS | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.