Skip to content

Commit

Permalink
precommit after autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo committed Jan 29, 2025
1 parent 5dbcab0 commit b7de035
Show file tree
Hide file tree
Showing 29 changed files with 40 additions and 39 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ default_stages: [commit]

repos:
- repo: https://github.com/psf/black
rev: 24.8.0
rev: 25.1.0
hooks:
- id: black

- repo: https://github.com/timothycrosley/isort
rev: 5.13.2
rev: 6.0.0
hooks:
- id: isort
args: ["--profile", "black"]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/boundary_conditions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" classes representing boundary conditions """
"""classes representing boundary conditions"""

from .constant import Constant
from .extrapolated import Extrapolated
Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/boundary_conditions/constant.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" boundary condition filling halos with a constant value """
"""boundary condition filling halos with a constant value"""

# pylint: disable=too-many-arguments
from functools import lru_cache
Expand Down
4 changes: 2 additions & 2 deletions PyMPDATA/boundary_conditions/extrapolated.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
""" boundary condition extrapolating values from the edge to the halo for scalars
"""boundary condition extrapolating values from the edge to the halo for scalars
and returning edge-of-the-domain value for vectors (with all negative scalar values
set to zero) """
set to zero)"""

# pylint: disable=too-many-arguments
from functools import lru_cache
Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/boundary_conditions/periodic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" periodic/cyclic boundary condition logic """
"""periodic/cyclic boundary condition logic"""

from functools import lru_cache

Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/boundary_conditions/polar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" polar boundary condition for use in with spherical coordinates """
"""polar boundary condition for use in with spherical coordinates"""

from functools import lru_cache

Expand Down
4 changes: 2 additions & 2 deletions PyMPDATA/impl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
""" package internals, if anything from within is needed to be referenced
from user code, please report implementation leak into public API as an issue """
"""package internals, if anything from within is needed to be referenced
from user code, please report implementation leak into public API as an issue"""
4 changes: 2 additions & 2 deletions PyMPDATA/impl/clock.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
""" CPU-time returning clock() function which works from within njit-ted code,
no time unit guaranteed, returned value only for relative time measurements """
"""CPU-time returning clock() function which works from within njit-ted code,
no time unit guaranteed, returned value only for relative time measurements"""

import ctypes

Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/impl/domain_decomposition.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" logic defining domain decomposition scheme for multi-threading """
"""logic defining domain decomposition scheme for multi-threading"""

import math

Expand Down
4 changes: 2 additions & 2 deletions PyMPDATA/impl/enumerations.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
""" common constants named with the intention of improving code readibility
(mostly integer indices used for indexing tuples) """
"""common constants named with the intention of improving code readibility
(mostly integer indices used for indexing tuples)"""

import numpy as np

Expand Down
4 changes: 2 additions & 2 deletions PyMPDATA/impl/field.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
""" common logic for `PyMPDATA.scalar_field.ScalarField` and
`PyMPDATA.vector_field.VectorField` classes """
"""common logic for `PyMPDATA.scalar_field.ScalarField` and
`PyMPDATA.vector_field.VectorField` classes"""

import abc
from collections import namedtuple
Expand Down
4 changes: 2 additions & 2 deletions PyMPDATA/impl/formulae_antidiff.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
""" antidiffusive velocity formulae incl. divergent-flow,
third-order-terms, DPDC and partially also infinite-gauge logic """
"""antidiffusive velocity formulae incl. divergent-flow,
third-order-terms, DPDC and partially also infinite-gauge logic"""

import numba
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/impl/formulae_axpy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" basic a*x+y operation logic for use in Fickian term handling """
"""basic a*x+y operation logic for use in Fickian term handling"""

import numba

Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/impl/formulae_flux.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" staggered-grid flux logic including infinite-gauge logic handling """
"""staggered-grid flux logic including infinite-gauge logic handling"""

import numba
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/impl/formulae_laplacian.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" logic for handling the Fickian term by modifying physical velocity """
"""logic for handling the Fickian term by modifying physical velocity"""

import numba

Expand Down
4 changes: 2 additions & 2 deletions PyMPDATA/impl/formulae_nonoscillatory.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
""" the nonoscillatory option for MPDATA as introduced in
[Smolarkiewicz & Grabowski 1990](https://doi.org/10.1016/0021-9991(90)90105-A) """
"""the nonoscillatory option for MPDATA as introduced in
[Smolarkiewicz & Grabowski 1990](https://doi.org/10.1016/0021-9991(90)90105-A)"""

import numba
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/impl/formulae_upwind.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" upwind/donor-cell formula logic including G-factor handling """
"""upwind/donor-cell formula logic including G-factor handling"""

import numba

Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/impl/indexers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" array indexing logic for 1D, 2D and 3D staggered grids """
"""array indexing logic for 1D, 2D and 3D staggered grids"""

# pylint: disable=missing-function-docstring

Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/impl/meta.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" constants for indexing and a factory for creating the "meta" tuples """
"""constants for indexing and a factory for creating the "meta" tuples"""

from collections import namedtuple
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/impl/traversals.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" staggered-grid traversals orchestration """
"""staggered-grid traversals orchestration"""

from collections import namedtuple
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/impl/traversals_common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" commons for scalar and vector field traversals """
"""commons for scalar and vector field traversals"""

# pylint: disable=too-many-arguments,line-too-long,unused-argument
import numba
Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/impl/traversals_halos_scalar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" halo-filling logic for scalar field traversals (incl. multi-threading) """
"""halo-filling logic for scalar field traversals (incl. multi-threading)"""

# pylint: disable=too-many-arguments
import numba
Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/impl/traversals_halos_vector.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" halo-filling logic for vector field traversals (incl. multi-threading) """
"""halo-filling logic for vector field traversals (incl. multi-threading)"""

# pylint: disable=too-many-statements,too-many-locals,too-many-lines,too-many-function-args,too-many-arguments

Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/impl/traversals_scalar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" scalar field traversals (incl. multi-threading) """
"""scalar field traversals (incl. multi-threading)"""

import numba

Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/impl/traversals_vector.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" vector field traversals (incl. multi-threading) """
"""vector field traversals (incl. multi-threading)"""

import numba

Expand Down
2 changes: 1 addition & 1 deletion PyMPDATA/stepper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" MPDATA iteration logic """
"""MPDATA iteration logic"""

import sys
import warnings
Expand Down
2 changes: 1 addition & 1 deletion examples/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" the magick behind ``pip install ...`` """
"""the magick behind ``pip install ...``"""

import os
import re
Expand Down
5 changes: 3 additions & 2 deletions tests/smoke_tests/jaruga_et_al_2015/test_boussinesq.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
""" tests for buoyant-bubble test case from Fig. 3 in [Smolarkiewicz & Pudykiewicz
"""tests for buoyant-bubble test case from Fig. 3 in [Smolarkiewicz & Pudykiewicz
1992](https://doi.org/10.1175/1520-0469(1992)049%3C2082:ACOSLA%3E2.0.CO;2),
as in libmpdata++ paper ([Jaruga et al. 2015](https://doi.org/10.5194/gmd-8-1005-2015), Fig. 19)"""
as in libmpdata++ paper ([Jaruga et al. 2015](https://doi.org/10.5194/gmd-8-1005-2015), Fig. 19)
"""

# pylint: disable=missing-class-docstring,missing-function-docstring

Expand Down
2 changes: 1 addition & 1 deletion tests/smoke_tests/timing/fixtures.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" pytest fixtures for timing tests """
"""pytest fixtures for timing tests"""

import numba
import pytest
Expand Down

0 comments on commit b7de035

Please sign in to comment.