Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import-order-style = google
application-import-names = esmf_regrid
select = C,D,E,F,I,W,B,B950
ignore =
# D202: No blank lines allowed after function docstring
D202,
# E203: whitespace before ':'
E203,
# E226: missing whitespace around arithmetic operator
Expand All @@ -28,7 +30,7 @@ ignore =
W503,
# W504: line break after binary operator
W504
exclude =
exclude =
.eggs
build
esmf_regrid/__init__.py
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
# Don't commit to master branch.
- id: no-commit-to-branch
- repo: https://github.com/psf/black
rev: '22.12.0'
rev: '23.1.0'
hooks:
- id: black
# Force black to run on whole repo, using settings from pyproject.toml
Expand All @@ -30,6 +30,6 @@ repos:
- id: flake8
args: [--config=./.flake8]
additional_dependencies: [
'flake8-docstrings==1.6.0',
'flake8-docstrings==1.7.0',
'flake8-import-order==0.18.2',
]
1 change: 1 addition & 0 deletions esmf_regrid/tests/unit/esmf_regridder/test_Regridder.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def test_Regridder_init_small():
With predictable weights it is easier to check that the weights are
associated with the correct indices.
"""

# The following ASCII visualisation describes the source and target grids
# and the indices which ESMF assigns to their cells.
# Analysis of the weights dict returned by ESMF confirms that this is
Expand Down