]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Applying flake8 rules to some files
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 14 Mar 2019 17:22:55 +0000 (18:22 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 14 Mar 2019 17:22:55 +0000 (18:22 +0100)
lib/webhooks/forge/base_module_info.py
lib/webhooks/forge/cur_mod_release_info.py

index 5f81f78cc9e4b041f00753e0d33f691ac50453c1..f5c77426d5af29aba4ea63fda63dfdb760c9c5b2 100644 (file)
@@ -10,26 +10,19 @@ from __future__ import absolute_import
 
 # Standard modules
 import logging
-import re
 import copy
-import warnings
-import time
 import datetime
-import collections
-
 
 # Own modules
-from fb_tools.common import pp, to_str, to_bool, is_sequence
 
 from ..xlate import XLATOR
 
 from . import parse_forge_date
-from . import ReleaseInfoError, ForgeModuleInfoError, ForgeModuleInfoTypeError
 from . import BaseForgeObject
 
 from .owner_info import ForgeOwnerInfo
 
-__version__ = '0.1.0'
+__version__ = '0.1.1'
 
 LOG = logging.getLogger(__name__)
 
@@ -50,7 +43,8 @@ class BaseForgeModuleInfo(BaseForgeObject):
         self.owner = None
 
         super(BaseForgeModuleInfo, self).__init__(
-            appname=appname, verbose=verbose, version=version, base_dir=base_dir, initialized=False)
+            appname=appname, verbose=verbose, version=version,
+            base_dir=base_dir, initialized=False)
 
         if initialized is not None:
             self.initialized = initialized
index c4bd10ea58a1c56424fb7991bf805b5fc73ab8ea..4a235877f39ae82b92d354dd5b8c4dfa9167c62b 100644 (file)
@@ -10,32 +10,23 @@ from __future__ import absolute_import
 
 # Standard modules
 import logging
-import re
 import copy
-import warnings
-import time
 import datetime
-import collections
-
 
 # Own modules
-from fb_tools.common import pp, to_str, to_bool, is_sequence
+from fb_tools.common import pp, to_bool
 
 from ..xlate import XLATOR
 
 from . import parse_forge_date
-from . import ReleaseInfoError, ForgeModuleInfoError, ForgeModuleInfoTypeError
-from . import BaseForgeObject
 
 from ..module_meta_info import ModuleMetadata
 
-from .owner_info import ForgeOwnerInfo
-
 from .mod_release_info import ModuleReleaseInfo
 
 from .base_module_info import BaseForgeModuleInfo
 
-__version__ = '0.1.1'
+__version__ = '0.1.2'
 
 LOG = logging.getLogger(__name__)
 
@@ -69,7 +60,8 @@ class CurrentModuleReleaseInfo(ModuleReleaseInfo):
         self._validation_score = None
 
         super(CurrentModuleReleaseInfo, self).__init__(
-            appname=appname, verbose=verbose, version=version, base_dir=base_dir, initialized=False)
+            appname=appname, verbose=verbose, version=version,
+            base_dir=base_dir, initialized=False)
 
         if initialized is not None:
             self.initialized = initialized