Skip to content

Commit 449bf4a

Browse files
Fix: Matching pyFV3 package specifications (NOAA-GFDL#132)
* Addition of metadata and configuration information to pyproject.toml, and minimal setup.py * Linting * Adding conditional statement for checking of local clone of dependency * Linting * Reverting back to using find_pkg in setup.py * Updating author in pyproject.toml * Intermediate steps for refactor of pyFV3 and pySHiELD * Bringing in changes from PR 129 Co-authored-by: Janice Kim <janice.kim@noaa.gov> Co-authored-by: Frank Malatino <142349306+fmalatino@users.noreply.github.com> * Confirming tests Co-authored-by: Janice Kim <janice.kim@noaa.gov> Co-authored-by: Frank Malatino <142349306+fmalatino@users.noreply.github.com> * Changing backend of barolinic_c48_no_out.yaml * Adding baroclinic_c48_no_out.yaml to excluded configs in test_example_configs * Adding baroclinic_c48_no_out.yaml to workflow * Adding 54 ranks to be used in workflow * Reducing number of ranks for workflow run to 6 * Removing references to support for Python 3.9-3.10 in pyproject.toml * Removing more references to old Python version support * Removing setup.cfg * Setting black target version to Python 3.11 * New linting tools * Updating versions of tools contained in pyproject.toml and pre-commit-config * Reverting changes to fv_dynamics thresholds * Adding Flake8-pyproject as an additional dependency in pre-commit-config.yaml * Updating configs in examples/notebooks to use 'baroclinic_instability' over 'baroclinic' * Testing bumping mpi4py to 4.1 * Testing still * Removing version specification for mpi4py * Matching pyFV3 metadata --------- Co-authored-by: Janice Kim <janice.kim@noaa.gov>
1 parent cc5d9f4 commit 449bf4a

File tree

2 files changed

+27
-11
lines changed

2 files changed

+27
-11
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ repos:
66
rev: 25.1.0
77
hooks:
88
- id: black
9-
additional_dependencies: ["click==8.0.4"]
109

1110
- repo: https://github.com/pre-commit/mirrors-isort
1211
rev: v5.10.1
@@ -30,22 +29,14 @@ repos:
3029
- id: check-yaml
3130
- id: end-of-file-fixer
3231
- id: trailing-whitespace
32+
3333
- repo: https://github.com/pycqa/flake8
3434
rev: 7.3.0
3535
hooks:
3636
- id: flake8
3737
name: flake8
3838
language_version: python3
3939
additional_dependencies: [Flake8-pyproject]
40-
exclude: |
41-
(?x)^(
42-
.*/__init__.py |
43-
)$
44-
- id: flake8
45-
name: flake8 __init__.py files
46-
files: "__init__.py"
47-
# ignore unused import error in __init__.py files
48-
additional_dependencies: [Flake8-pyproject]
4940

5041
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
5142
rev: v2.15.0

pace/__init__.py

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
)
1111
from .diagnostics import Diagnostics, DiagnosticsConfig
1212
from .driver import Driver, DriverConfig, RestartConfig
13-
from .grid import GeneratedGridConfig, SerialboxGridConfig
13+
from .grid import ExternalNetcdfGridConfig, GeneratedGridConfig, SerialboxGridConfig
1414
from .initialization import (
1515
AnalyticInit,
1616
FortranRestartInit,
@@ -23,3 +23,28 @@
2323

2424

2525
__version__ = "0.2.0"
26+
27+
__all__ = [
28+
"CreatesComm",
29+
"CreatesCommSelector",
30+
"MPICommConfig",
31+
"NullCommConfig",
32+
"ReaderCommConfig",
33+
"WriterCommConfig",
34+
"Diagnostics",
35+
"DiagnosticsConfig",
36+
"Driver",
37+
"DriverConfig",
38+
"RestartConfig",
39+
"GeneratedGridConfig",
40+
"SerialboxGridConfig",
41+
"ExternalNetcdfGridConfig",
42+
"AnalyticInit",
43+
"FortranRestartInit",
44+
"PredefinedStateInit",
45+
"RestartInit",
46+
"Registry",
47+
"SafetyChecker",
48+
"DriverState",
49+
"TendencyState",
50+
]

0 commit comments

Comments
 (0)