Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#237)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 22.12.0 → 23.1.0](psf/black@22.12.0...23.1.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Advance flake8-docstrings to 1.7.0.

* Ignore flake8 D202, as the rule is permissive and disagrees with Black.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Martin Yeo <martin.yeo@metoffice.gov.uk>
  • Loading branch information
pre-commit-ci[bot] and trexfeathers committed Feb 16, 2023
1 parent 4107305 commit 55b8354
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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

0 comments on commit 55b8354

Please sign in to comment.