From 59918d5b98ecca0679fafd12af03f9d6a68fdba7 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Tue, 21 Dec 2021 11:03:22 -0800 Subject: pre-commit: Python imports (#2686) * pre-commit: Python imports Add two new Python rules to: - remove unused imports - sort imports according to PEP8 * pre-commit: Python imports Add two new Python rules to: - remove unused imports - sort imports according to PEP8 `.editorconfig`: isort options https://github.com/PyCQA/isort/wiki/isort-Settings * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * move import os (mpl) * move import yt (mpl) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Cleanup around matplotlib.use * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Cleaning: double np and lib Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- Python/pywarpx/timestepper.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Python/pywarpx/timestepper.py') diff --git a/Python/pywarpx/timestepper.py b/Python/pywarpx/timestepper.py index f75bc8c2b..de341097a 100644 --- a/Python/pywarpx/timestepper.py +++ b/Python/pywarpx/timestepper.py @@ -12,8 +12,7 @@ # Note that this is intended to be an example only and may not be functional. The # onestep routine as written here is out of date and is not consistent with WarpX::Evolve. -from . import libwarpx -from . import callbacks +from . import callbacks, libwarpx class TimeStepper(object): -- cgit v1.2.3