From caf83b93577c8a544a37b9f7485d3ef8f07608d4 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sat, 19 Jan 2019 17:02:10 +0000 Subject: [PATCH] Fix the remaining two style issues in britney2/__init__.py Signed-off-by: Niels Thykier --- britney2/__init__.py | 4 +++- tests/test_pycodestyle.py | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/britney2/__init__.py b/britney2/__init__.py index db40d02..6fc274b 100644 --- a/britney2/__init__.py +++ b/britney2/__init__.py @@ -2,6 +2,7 @@ import logging from collections import namedtuple from enum import Enum, unique + class DependencyType(Enum): DEPENDS = ('Depends', 'depends', 'dependency') # BUILD_DEPENDS includes BUILD_DEPENDS_ARCH @@ -216,7 +217,8 @@ class SourcePackage(object): __slots__ = ['version', 'section', 'binaries', 'maintainer', 'is_fakesrc', 'build_deps_arch', 'build_deps_indep', 'testsuite', 'testsuite_triggers'] - def __init__(self, version, section, binaries, maintainer, is_fakesrc, build_deps_arch, build_deps_indep, testsuite, testsuite_triggers): + def __init__(self, version, section, binaries, maintainer, is_fakesrc, build_deps_arch, build_deps_indep, + testsuite, testsuite_triggers): self.version = version self.section = section self.binaries = binaries diff --git a/tests/test_pycodestyle.py b/tests/test_pycodestyle.py index e811fa1..de19486 100644 --- a/tests/test_pycodestyle.py +++ b/tests/test_pycodestyle.py @@ -11,7 +11,6 @@ def should_skip_codestyle(): EXCEPTIONS_BY_FILE = { 'britney.py': 32, - 'britney2/__init__.py': 2, 'britney2/excuse.py': 5, 'britney2/hints.py': 8, 'britney2/installability/tester.py': 4,