diff --git a/pyroma/__init__.py b/pyroma/__init__.py index 1bdefd9..038d13c 100644 --- a/pyroma/__init__.py +++ b/pyroma/__init__.py @@ -151,7 +151,6 @@ def main(): def run(mode, argument, quiet=False, skip_tests=None): - if quiet: logger = logging.getLogger() logger.disabled = True diff --git a/pyroma/projectdata.py b/pyroma/projectdata.py index 700dd47..960b60b 100644 --- a/pyroma/projectdata.py +++ b/pyroma/projectdata.py @@ -84,7 +84,6 @@ def _get_data(path): # It couldn't build the package, because there is no setup.py or pyproject.toml. # Let's see if there is a setup.cfg: try: - metadata = get_setupcfg_data(path) # Yes, there's a setup.cfg. Pyroma accepted this earlier, but that was probably # a mistake. For the time being, warn for it, but in a future version just fail. @@ -127,7 +126,6 @@ def __exit__(self, exc_type, exc_val, exc_tb): class SetupMonkey: - used_setuptools = False def distutils_setup_replacement(self, **kw): diff --git a/pyroma/ratings.py b/pyroma/ratings.py index d6630a5..5af2acb 100644 --- a/pyroma/ratings.py +++ b/pyroma/ratings.py @@ -397,7 +397,6 @@ def message(self): class ValidREST(BaseTest): - weight = 50 def test(self, data): diff --git a/pyroma/tests.py b/pyroma/tests.py index 787d2ef..17b752c 100644 --- a/pyroma/tests.py +++ b/pyroma/tests.py @@ -100,7 +100,6 @@ def __exit__(self, type, value, traceback): class RatingsTest(unittest.TestCase): - maxDiff = None def _get_file_rating(self, dirname, skip_tests=None): @@ -273,7 +272,6 @@ def test_markdown(self): class PyPITest(unittest.TestCase): - maxDiff = None @unittest.mock.patch("xmlrpc.client.ServerProxy", proxystub) @@ -322,7 +320,6 @@ def test_complete(self, projectdatamock): class ProjectDataTest(unittest.TestCase): - maxDiff = None def test_complete(self): @@ -334,7 +331,6 @@ def test_complete(self): class DistroDataTest(unittest.TestCase): - maxDiff = None def test_complete(self):