diff --git a/.flake8 b/.flake8 index dee0cdb1..855c8d8a 100644 --- a/.flake8 +++ b/.flake8 @@ -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 @@ -28,7 +30,7 @@ ignore = W503, # W504: line break after binary operator W504 -exclude = +exclude = .eggs build esmf_regrid/__init__.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2a304c3e..d68498bf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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', ] diff --git a/esmf_regrid/tests/unit/esmf_regridder/test_Regridder.py b/esmf_regrid/tests/unit/esmf_regridder/test_Regridder.py index ef9c26ed..8f16753b 100644 --- a/esmf_regrid/tests/unit/esmf_regridder/test_Regridder.py +++ b/esmf_regrid/tests/unit/esmf_regridder/test_Regridder.py @@ -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