Skip to content

Commit

Permalink
Clean up some linter flags
Browse files Browse the repository at this point in the history
  • Loading branch information
LSchueler committed Nov 10, 2021
1 parent 774c730 commit c997f02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions gstools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"""
# pylint: disable=W0611
try:
try: # pragma: no cover
import gstools_core

USE_RUST = True # pragma: no cover
USE_RUST = True
except ImportError:
USE_RUST = False
5 changes: 2 additions & 3 deletions gstools/field/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
from gstools.covmodel.base import CovModel
from gstools.random.rng import RNG

if config.USE_RUST:
if config.USE_RUST: # pragma: no cover
# pylint: disable=E0401
from gstools_core import summate, summate_incompr # pragma: no cover
from gstools_core import summate, summate_incompr
else:
# pylint: disable=C0412
from gstools.field.summator import summate, summate_incompr

__all__ = ["RandMeth", "IncomprRandMeth"]
Expand Down
4 changes: 2 additions & 2 deletions gstools/krige/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
from gstools.tools.misc import eval_func
from gstools.variogram import vario_estimate

if config.USE_RUST:
if config.USE_RUST: # pragma: no cover
# pylint: disable=E0401
from gstools_core import ( # pragma: no cover
from gstools_core import (
calc_field_krige,
calc_field_krige_and_variance,
)
Expand Down

0 comments on commit c997f02

Please sign in to comment.