From 39ddaaec5875195ab62beeaa060a2cef86d37ddd Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 8 Nov 2021 16:14:43 -0800 Subject: Install pre-commit (#2532) * Add pre-commit Add basis for automated pre-commit checks. Install locally via: ```bash python3 -m pip install -U pre-commit pre-commit install ``` See: https://pre-commit.com * Cleanup: Whitespaces * Cleanup: requirements.txt order --- Python/README | 1 - Python/pywarpx/Bucket.py | 1 - Python/pywarpx/Diagnostics.py | 1 - Python/pywarpx/WarpX.py | 1 - Python/pywarpx/WarpXPIC.py | 1 - Python/pywarpx/callbacks.py | 1 - 6 files changed, 6 deletions(-) (limited to 'Python') diff --git a/Python/README b/Python/README index d0e3a343f..776cc30f5 100644 --- a/Python/README +++ b/Python/README @@ -6,4 +6,3 @@ To build it, run "make" in the main WarpX directory setting USE_PYTHON_MAIN to T on the command line. This will compile the code and install the wrapper in the Python site-packages directory. There are several example python scripts in the "Examples" subdirectories. - diff --git a/Python/pywarpx/Bucket.py b/Python/pywarpx/Bucket.py index 61276c75a..b4ae4a06a 100644 --- a/Python/pywarpx/Bucket.py +++ b/Python/pywarpx/Bucket.py @@ -67,4 +67,3 @@ class Bucket(object): attrstring = '{0}.{1} = {2}'.format(self.instancename, attr, repr(rhs).strip("'\"")) result += [attrstring] return result - diff --git a/Python/pywarpx/Diagnostics.py b/Python/pywarpx/Diagnostics.py index 4846a88c8..5ed359b1c 100644 --- a/Python/pywarpx/Diagnostics.py +++ b/Python/pywarpx/Diagnostics.py @@ -22,4 +22,3 @@ class Diagnostic(Bucket): def __setattr__(self, name, value): self.add_new_attr_with_check(name, value) - diff --git a/Python/pywarpx/WarpX.py b/Python/pywarpx/WarpX.py index 6014eec6c..7b1a07e24 100644 --- a/Python/pywarpx/WarpX.py +++ b/Python/pywarpx/WarpX.py @@ -106,4 +106,3 @@ class WarpX(Bucket): ff.write('{0}\n'.format(arg)) warpx = WarpX('warpx') - diff --git a/Python/pywarpx/WarpXPIC.py b/Python/pywarpx/WarpXPIC.py index 66930d81f..241951d13 100644 --- a/Python/pywarpx/WarpXPIC.py +++ b/Python/pywarpx/WarpXPIC.py @@ -60,4 +60,3 @@ class WarpXPIC(PICAPI): def apply_particle_boundary_conditions(self): libwarpx.mypc_Redistribute() # Redistribute particles libwarpx.warpx_MoveWindow(self.istep,True) # !!! not the correct place yet - diff --git a/Python/pywarpx/callbacks.py b/Python/pywarpx/callbacks.py index 70cece8a8..2d3576c5b 100644 --- a/Python/pywarpx/callbacks.py +++ b/Python/pywarpx/callbacks.py @@ -505,4 +505,3 @@ def isinstalledappliedfields(f): "Checks if the function is called when which applies fields" raise Exception('applied fields call back not implemented yet') return _appliedfields.isinstalledfuncinlist(f) - -- cgit v1.2.3