From 6e343c0de4344a0691eba437e9108d3a66f7aa5b Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Feb 12 2021 02:51:53 +0000 Subject: lint fixes --- diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index aa545ba..1b7f530 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -1,8 +1,9 @@ -#pylint: disable=line-too-long,abstract-class-not-used +# pylint: disable=line-too-long,abstract-class-not-used + ''' Top level function library for centpkg ''' -# + # Author(s): # Jesse Keating # Pat Riehecky @@ -15,17 +16,12 @@ # the full text of the license. - -import os import re -import sys import warnings from pyrpkg import Commands, rpkgError -from pyrpkg.layout import SRPMLayout, DistGitLayout -from .lookaside import StreamLookasideCache,SIGLookasideCache +from .lookaside import StreamLookasideCache, SIGLookasideCache from pyrpkg.utils import cached_property -from . import cli class DistGitDirectory(object): @@ -75,13 +71,12 @@ class DistGitDirectory(object): releaseorcommon = self.releasename if self.distrobranch: - if self.centosversion not in ('6','7'): + if self.centosversion not in ('6', '7'): return 'c{}s-candidate'.format(self.centosversion) else: return '-'.join(filter(None, ['c'+self.centosversion, projectorcommon])) - if not releaseorcommon: if not projectorcommon or projectorcommon == 'common': projectorcommon = 'common' @@ -115,10 +110,10 @@ class Commands(Commands): ) else: return SIGLookasideCache(self.lookasidehash, - self.lookaside, - self.lookaside_cgi, - self.repo_name, - self.branch_merge) + self.lookaside, + self.lookaside_cgi, + self.repo_name, + self.branch_merge) # redefined loaders def load_rpmdefines(self): @@ -147,20 +142,3 @@ class Commands(Commands): """ This sets the target attribute (used for mock and koji) """ self._target = self.distgitdir.target - - def upload(self, *args, **kwargs): - if not self.distgitdir.distrobranch: - self.source_entry_type = 'bsd' - return super(Commands, self).upload(*args, **kwargs) - - def import_srpm(self, *args, **kwargs): - raise NotImplementedError("import_srpm is not yet implemented in centpkg") - - def patch(self, *args, **kwargs): - raise NotImplementedError("patch is not yet implemented in centpkg") - - def install(self, *args, **kwargs): - raise NotImplementedError("install is not yet implemented in centpkg") - - def lint(self, *args, **kwargs): - raise NotImplementedError("lint is not yet implemented in centpkg")