-
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.
merging of greenline with main
- Loading branch information
Showing
139 changed files
with
8,640 additions
and
135 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ _local | |
_external_src | ||
_reports | ||
tmp | ||
testdata | ||
simple_mesh*.nc | ||
|
||
### GT4Py #### | ||
.gt_cache/ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# VCS | ||
gt4py @ git+https://github.com/GridTools/gt4py.git@main | ||
pyghex @ git+https://github.com/boeschf/GHEX.git@pipify#subdirectory=bindings/python |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[bumpversion] | ||
current_version = 0.0.6 | ||
parse = (?P<major>\d+)\.(?P<minor>\d+)(\.(?P<patch>\d+))? | ||
serialize = | ||
{major}.{minor}.{patch} | ||
|
||
[bumpversion:file:src/icon4py/model/atmosphere/diffusion/__init__.py] | ||
parse = \"(?P<major>\d+)\.(?P<minor>\d+)(\.(?P<patch>\d+))?\" | ||
serialize = | ||
{major}.{minor}.{patch} |
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,42 @@ | ||
[flake8] | ||
# Some sane defaults for the code style checker flake8 | ||
max-line-length = 100 | ||
max-complexity = 15 | ||
doctests = true | ||
extend-ignore = | ||
# Do not perform function calls in argument defaults | ||
B008, | ||
# Public code object needs docstring | ||
D1, | ||
# Disable dargling errors by default | ||
DAR, | ||
# Whitespace before ':' (black formatter breaks this sometimes) | ||
E203, | ||
# Line too long (using Bugbear's B950 warning) | ||
E501, | ||
# Line break occurred before a binary operator | ||
W503 | ||
|
||
exclude = | ||
.eggs, | ||
.gt_cache, | ||
.ipynb_checkpoints, | ||
.tox, | ||
_local_, | ||
build, | ||
dist, | ||
docs, | ||
_external_src, | ||
tests/_disabled, | ||
setup.py | ||
|
||
rst-roles = | ||
py:mod, mod, | ||
py:func, func, | ||
py:data, data, | ||
py:const, const, | ||
py:class, class, | ||
py:meth, meth, | ||
py:attr, attr, | ||
py:exc, exc, | ||
py:obj, obj, |
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,114 @@ | ||
# NOTE: pre-commit runs all hooks from the root folder of the repository, | ||
# as regular git hooks do. Therefore, paths passed as arguments to the plugins | ||
# should always be relative to the root folder. | ||
|
||
default_stages: [commit, push] | ||
default_language_version: | ||
python: python3.10 | ||
minimum_pre_commit_version: 2.20.0 | ||
files: "model/atmosphere/diffusion/.*" | ||
|
||
repos: | ||
- repo: meta | ||
hooks: | ||
- id: check-hooks-apply | ||
stages: [manual] | ||
- id: check-useless-excludes | ||
stages: [manual] | ||
|
||
- repo: https://github.com/asottile/setup-cfg-fmt | ||
rev: v1.20.1 | ||
hooks: | ||
# Run only manually because it deletes comments | ||
- id: setup-cfg-fmt | ||
name: format setup.cfg | ||
stages: [manual] | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-shebang-scripts-are-executable | ||
- id: check-symlinks | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: destroyed-symlinks | ||
|
||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks | ||
rev: v2.6.0 | ||
hooks: | ||
- id: pretty-format-ini | ||
args: [--autofix] | ||
- id: pretty-format-toml | ||
args: [--autofix] | ||
- id: pretty-format-yaml | ||
args: [--autofix, --preserve-quotes, --indent, "2"] | ||
|
||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.0-alpha.4 | ||
hooks: | ||
- id: prettier | ||
types_or: [markdown, json] | ||
|
||
- repo: https://github.com/Lucas-C/pre-commit-hooks | ||
rev: v1.3.0 | ||
hooks: | ||
- id: insert-license | ||
name: add license for all ICON4Py Python source files | ||
types: [python] | ||
args: [--comment-style, "|#|", --license-filepath, model/.license_header.txt, --fuzzy-match-generates-todo] | ||
|
||
- repo: https://github.com/asottile/yesqa | ||
rev: v1.3.0 | ||
hooks: | ||
- id: yesqa | ||
|
||
- repo: https://github.com/psf/black | ||
rev: '22.3.0' | ||
hooks: | ||
- id: black | ||
name: black Python formatter | ||
args: [--config, model/atmosphere/diffusion/pyproject.toml] | ||
|
||
- repo: https://github.com/asottile/blacken-docs | ||
rev: v1.12.1 | ||
hooks: | ||
- id: blacken-docs | ||
name: black Python formatter for docstrings | ||
additional_dependencies: [black==22.3.0] | ||
|
||
- repo: https://github.com/PyCQA/isort | ||
rev: '5.12.0' | ||
hooks: | ||
- id: isort | ||
args: [--config-root, model/atmosphere/diffusion/, --resolve-all-configs] | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: '4.0.1' | ||
hooks: | ||
- id: flake8 | ||
name: flake8 code style checks | ||
additional_dependencies: | ||
- darglint | ||
- flake8-bugbear | ||
- flake8-builtins | ||
- flake8-debugger | ||
- flake8-docstrings | ||
- flake8-eradicate | ||
- flake8-mutable | ||
- pygments | ||
args: [--config=model/atmosphere/diffusion/.flake8, model/atmosphere/diffusion/src/icon4py/] | ||
|
||
- repo: local | ||
hooks: | ||
- id: mypy | ||
name: mypy static type checker | ||
entry: bash -c 'echo mypy temporarily disabled' | ||
#entry: bash -c 'cd model/atmosphere/dycore; mypy src/' -- | ||
language: system | ||
types_or: [python, pyi] | ||
always_run: true | ||
#pass_filenames: false | ||
require_serial: true | ||
stages: [commit] |
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,9 @@ | ||
# icon4py-atmosphere-diffusion | ||
|
||
## Description | ||
|
||
Python port of ICON diffusion module. | ||
|
||
## Installation instructions | ||
|
||
Check the `README.md` at the root of the `model` folder for installation instructions. |
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,12 @@ | ||
# ICON4Py - ICON inspired code in Python and GT4Py | ||
# | ||
# Copyright (c) 2022, ETH Zurich and MeteoSwiss | ||
# All rights reserved. | ||
# | ||
# This file is free software: you can redistribute it and/or modify it under | ||
# the terms of the GNU General Public License as published by the | ||
# Free Software Foundation, either version 3 of the License, or any later | ||
# version. See the LICENSE.txt file at the top-level directory of this | ||
# distribution for a copy of the license or check <https://www.gnu.org/licenses/>. | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later |
Oops, something went wrong.