diff --git a/sunkit_pyvista/conftest.py b/sunkit_pyvista/conftest.py index 8fcbeda..e69f666 100644 --- a/sunkit_pyvista/conftest.py +++ b/sunkit_pyvista/conftest.py @@ -64,10 +64,7 @@ def verify_cache_images(plotter): allowed_warning = IMAGE_REGRESSION_WARNING if test_name is None: - msg = ( - "Unable to identify calling test function. This function " - "should only be used within a pytest environment." - ) + msg = "Unable to identify calling test function. This function should only be used within a pytest environment." raise RuntimeError( msg, ) @@ -83,13 +80,13 @@ def verify_cache_images(plotter): error = pyvista.compare_images(str(image_filename), plotter) if error > allowed_error: - msg = "Exceeded image regression error of " f"{IMAGE_REGRESSION_ERROR} with an image error of " f"{error}" + msg = f"Exceeded image regression error of {IMAGE_REGRESSION_ERROR} with an image error of {error}" raise RuntimeError( msg, ) if error > allowed_warning: warnings.warn( - "Exceeded image regression warning of " f"{IMAGE_REGRESSION_WARNING} with an image error of " f"{error}", + f"Exceeded image regression warning of {IMAGE_REGRESSION_WARNING} with an image error of {error}", stacklevel=2, ) return None diff --git a/sunkit_pyvista/plotter.py b/sunkit_pyvista/plotter.py index a1faa10..8601512 100644 --- a/sunkit_pyvista/plotter.py +++ b/sunkit_pyvista/plotter.py @@ -182,7 +182,7 @@ def set_view_angle(self, angle: u.deg): """ view_angle = angle.to_value(u.deg) if not (view_angle > 0 and view_angle <= 180): - msg = "specified view angle must be " "0 deg < angle <= 180 deg" + msg = "specified view angle must be 0 deg < angle <= 180 deg" raise ValueError(msg) zoom_value = self.camera.view_angle / view_angle self.camera.zoom(zoom_value) @@ -290,7 +290,7 @@ def plot_map( clip_interval=clip_interval, ) else: - msg = "Clip percentile interval must be " "specified as two numbers." + msg = "Clip percentile interval must be specified as two numbers." raise ValueError( msg, ) diff --git a/sunkit_pyvista/version.py b/sunkit_pyvista/version.py index 523a97a..d068bdd 100644 --- a/sunkit_pyvista/version.py +++ b/sunkit_pyvista/version.py @@ -9,7 +9,7 @@ except Exception: import warnings - warnings.warn(f'could not determine {__name__.split(".")[0]} package version; this indicates a broken installation') + warnings.warn(f"could not determine {__name__.split('.')[0]} package version; this indicates a broken installation") del warnings version = "0.0.0"