From 2d1f84e7f0556b6b37bddae3eed8445397440d24 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 12 Aug 2014 18:47:11 +0200 Subject: [PATCH] run_checks: Always run pep257 --- scripts/run_checks.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/run_checks.py b/scripts/run_checks.py index fb5fef8b5..548f12f81 100755 --- a/scripts/run_checks.py +++ b/scripts/run_checks.py @@ -40,12 +40,7 @@ import tokenize import configparser from collections import OrderedDict -try: - import pep257 -except ImportError: - do_check_257 = False -else: - do_check_257 = True +import pep257 from pkg_resources import load_entry_point, DistributionNotFound # We need to do this because pyroma is braindead enough to use logging instead @@ -231,8 +226,7 @@ check_unittest() check_git() for trg in CONFIG.get('DEFAULT', 'targets').split(','): print("==================== {} ====================".format(trg)) - if do_check_257: - check_pep257(trg, _get_args('pep257')) + check_pep257(trg, _get_args('pep257')) for chk in ('pylint', 'flake8'): # FIXME what the hell is the flake8 exit status? run(chk, trg, _get_args(chk))