From 0049a31e3fce1c866ea006e1be131ad5617a35eb Mon Sep 17 00:00:00 2001 From: LSchueler Date: Wed, 10 Nov 2021 17:04:18 +0100 Subject: [PATCH] Clean up some linter flags --- gstools/config.py | 4 ++-- gstools/field/generator.py | 5 ++--- gstools/krige/base.py | 7 ++----- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/gstools/config.py b/gstools/config.py index 4186a259..38f3e7fa 100644 --- a/gstools/config.py +++ b/gstools/config.py @@ -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 diff --git a/gstools/field/generator.py b/gstools/field/generator.py index c13d71a7..31cc7eea 100644 --- a/gstools/field/generator.py +++ b/gstools/field/generator.py @@ -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"] diff --git a/gstools/krige/base.py b/gstools/krige/base.py index 0ffc482c..8accf508 100755 --- a/gstools/krige/base.py +++ b/gstools/krige/base.py @@ -23,12 +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 - calc_field_krige, - calc_field_krige_and_variance, - ) + from gstools_core import calc_field_krige, calc_field_krige_and_variance else: from gstools.krige.krigesum import ( calc_field_krige,