From 9474ddcd7b83e797502a157a909a19a9532d377e Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Tue, 6 Dec 2022 19:06:45 +0100 Subject: [PATCH] Silence flake8 warnings --- DDG4/python/DDSim/Helper/Physics.py | 4 ++-- GaudiPluginService/python/GaudiPluginService/cpluginsvc.py | 2 +- examples/LHeD/scripts/LHeD.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DDG4/python/DDSim/Helper/Physics.py b/DDG4/python/DDSim/Helper/Physics.py index 99736cf8e..9ca3801dc 100644 --- a/DDG4/python/DDSim/Helper/Physics.py +++ b/DDG4/python/DDSim/Helper/Physics.py @@ -105,12 +105,12 @@ class Physics(ConfigHelper): self._decays = val @property - def list(self): + def list(self): # noqa: A003 """The name of the Geant4 Physics list.""" return self._list @list.setter - def list(self, val): + def list(self, val): # noqa: A003 self._list = val def setupPhysics(self, kernel, name=None): diff --git a/GaudiPluginService/python/GaudiPluginService/cpluginsvc.py b/GaudiPluginService/python/GaudiPluginService/cpluginsvc.py index 82e939de2..c04954bf1 100644 --- a/GaudiPluginService/python/GaudiPluginService/cpluginsvc.py +++ b/GaudiPluginService/python/GaudiPluginService/cpluginsvc.py @@ -111,7 +111,7 @@ class Factory(ctypes.Structure): return _lib.cgaudi_factory_get_library(self) @property - def type(self): + def type(self): # noqa: A003 return _lib.cgaudi_factory_get_type(self) @property diff --git a/examples/LHeD/scripts/LHeD.py b/examples/LHeD/scripts/LHeD.py index 1935810d0..687c6596d 100644 --- a/examples/LHeD/scripts/LHeD.py +++ b/examples/LHeD/scripts/LHeD.py @@ -26,7 +26,7 @@ class LHeD: return self.geant4.setupTrackingField(prt=True) # Example to show how to setup random generator - def setupRandom(self, name, type=None, seed=None, quiet=True): # noqa: A002 + def setupRandom(self, name, type=None, seed=None, quiet=True): # noqa: A002 rndm = DDG4.Action(self.kernel, 'Geant4Random/' + name) if seed: rndm.Seed = seed -- GitLab