-
Notifications
You must be signed in to change notification settings - Fork 17
Fix: Adding Pace and PySHiELD unit tests back in to workflow
#66
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
Changes from 10 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5df509d
Adding back in pyshield tests
fmalatino d6b8241
New linting tools
fmalatino 4c95d9e
Activating Pace unit tests
fmalatino 0e4a18c
Removing setup.cfg
fmalatino bb71cb8
Fixing translate test workflow
fmalatino 96a7e02
Merging in develop
fmalatino 4c60be7
Adding Flake8-pyproject as additional dependency in pre-commit-config…
fmalatino 6681412
Removing bumpversion tool
fmalatino 63c69aa
Removing bdist_wheel universal 1 and using per-file-ignore for __init…
fmalatino 5177a0c
Fixed config file for mypy in .pre-commit-config.yaml
fmalatino f2e050f
Using __all__ to avoid unused import error in __init__ files
fmalatino 31779a3
Changing exclude in pyproject.toml to use correct case for directory …
fmalatino a420c82
Merge branch 'develop' into workflow_fix
fmalatino bf51aab
Linting
fmalatino 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
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 |
|---|---|---|
| @@ -1,15 +1,10 @@ | ||
| # TODO: Re-activate after PR 60 | ||
| # TODO: Temporarily removing tests due to dependent changes in | ||
| # Pace#129, PyFV3#64 PRs; tests should be reverted back after | ||
| # these PRs are merged. | ||
| name: "pace main tests" | ||
| on: | ||
| pull_request: | ||
|
|
||
| # name: "pace main tests" | ||
| # on: | ||
| # pull_request: | ||
|
|
||
| # jobs: | ||
| # pace_main_tests: | ||
| # uses: NOAA-GFDL/pace/.github/workflows/main_unit_tests.yaml@develop | ||
| # with: | ||
| # component_trigger: true | ||
| # component_name: pyFV3 | ||
| jobs: | ||
| pace_main_tests: | ||
| uses: NOAA-GFDL/pace/.github/workflows/main_unit_tests.yaml@develop | ||
| with: | ||
| component_trigger: true | ||
| component_name: pyFV3 |
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 |
|---|---|---|
| @@ -1,11 +1,10 @@ | ||
| # TODO: Reactivate after PR 60 | ||
| # name: "pySHiELD translate tests" | ||
| # on: | ||
| # pull_request: | ||
| name: "pySHiELD translate tests" | ||
| on: | ||
| pull_request: | ||
|
|
||
| # jobs: | ||
| # pyshield_translate_tests: | ||
| # uses: NOAA-GFDL/PySHiELD/.github/workflows/translate.yaml@develop | ||
| # with: | ||
| # component_trigger: true | ||
| # component_name: pyFV3 | ||
| jobs: | ||
| pyshield_translate_tests: | ||
| uses: NOAA-GFDL/PySHiELD/.github/workflows/translate.yaml@develop | ||
| with: | ||
| component_trigger: true | ||
| component_name: pyFV3 |
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 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 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 |
|---|---|---|
| @@ -1,57 +1,92 @@ | ||
| [build-system] | ||
| requires = ["setuptools >= 77.0.3"] | ||
| build-backend = "setuptools.build_meta" | ||
| requires = ["setuptools >= 77.0.3"] | ||
|
|
||
| [project] | ||
| name = "pyfv3" | ||
| version = "0.2.0" | ||
| authors = [{name = "NOAA - Geophysical Fluid Dynamics Laboratory", email = "oliver.elbert@noaa.gov"}] | ||
| classifiers = [ | ||
| "Development Status :: 2 - Pre-Alpha", | ||
| "Intended Audience :: Developers", | ||
| "Natural Language :: English", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.11" | ||
| ] | ||
| dependencies = [ | ||
| "f90nml>=1.1.0", | ||
| "numpy==1.26.4", | ||
| "xarray", | ||
| "f90nml>=1.1.0", | ||
| "numpy==1.26.4", | ||
| "xarray" | ||
| ] | ||
| requires-python = ">=3.11,<3.12" | ||
| authors = [{name = "NOAA - Geophysical Fluid Dynamics Laboratory", email = "oliver.elbert@noaa.gov"}] | ||
| description = "PyFV3 is a NDSL-based FV3 dynamical core for atmospheric models." | ||
| readme = "README.md" | ||
| license = "Apache-2.0" | ||
| license-files = ["LICENSE.md"] | ||
| classifiers = [ | ||
| "Development Status :: 2 - Pre-Alpha", | ||
| "Intended Audience :: Developers", | ||
| "Natural Language :: English", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.11", | ||
| ] | ||
| name = "pyfv3" | ||
| readme = "README.md" | ||
| requires-python = ">=3.11,<3.12" | ||
| version = "0.2.0" | ||
|
|
||
| [project.optional-dependencies] | ||
| test = [ | ||
| "coverage", | ||
| "pytest", | ||
| "pytest-subtests", | ||
| "serialbox", | ||
| ] | ||
| ndsl = ["ndsl @ git+https://github.com/NOAA-GFDL/NDSL.git@develop"] | ||
| develop = [ | ||
| "pyfv3[test]", | ||
| "pyfv3[ndsl]", | ||
| "pre-commit", | ||
| dev = [ | ||
| "pyfv3[test]", | ||
| "pyfv3[ndsl]", | ||
| "pre-commit", | ||
| "flake8-pyproject" | ||
| ] | ||
| extras = [ | ||
| "pyfv3[test]", | ||
| "pyfv3[ndsl]", | ||
| "pyfv3[develop]", | ||
| "pyfv3[test]", | ||
| "pyfv3[ndsl]", | ||
| "pyfv3[dev]" | ||
| ] | ||
| ndsl = ["ndsl @ git+https://github.com/NOAA-GFDL/NDSL.git@develop"] | ||
| test = [ | ||
| "coverage", | ||
| "pytest", | ||
| "pytest-subtests", | ||
| "serialbox" | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Repository = "https://github.com/NOAA-GFDL/pyFV3" | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| include = ["pyfv3", "pyfv3.*"] | ||
|
|
||
| [tool.setuptools] | ||
| include-package-data = true | ||
| [tool.aliases] | ||
|
|
||
| [tool.black] | ||
| line-length = 88 | ||
| target_version = ['py311'] | ||
|
|
||
| [tool.coverage.run] | ||
| branch = true | ||
| omit = ["tests/*", "*gt_cache*", ".dacecache*", "external/*", "__init__.py"] | ||
| parallel = true | ||
| source_pkgs = ["pyfv3"] | ||
|
|
||
| [tool.flake8] | ||
| exclude = ["docs"] | ||
| extend-ignore = ["W503", "E302", "E203", "F841"] | ||
| max-line-length = 88 | ||
| per-file-ignores = "__init__.py: F401" | ||
|
romanc marked this conversation as resolved.
Outdated
|
||
|
|
||
| [tool.isort] | ||
| default_section = "THIRDPARTY" | ||
| force_grid_wrap = 0 | ||
| include_trailing_comma = true | ||
| known_first_party = "pyfv3,ndsl,pyshield" | ||
| known_third_party = "f90nml,pytest,xarray,numpy,mpi4py,gt4py" | ||
| line_length = 88 | ||
| lines_after_imports = 2 | ||
| multi_line_output = 3 | ||
| sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER" | ||
| use_parentheses = true | ||
|
|
||
| [tool.mypy] | ||
| explicit_package_bases = true | ||
| follow_imports = "normal" | ||
| ignore_missing_imports = true | ||
| namespace_packages = true | ||
| strict_optional = false | ||
| warn_unreachable = true | ||
|
|
||
| [tool.setuptools] | ||
| include-package-data = true | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| include = ["pyfv3", "pyfv3.*"] | ||
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.