diff --git a/pavelib/quality.py b/pavelib/quality.py index b7df12cab7..0570cb646f 100644 --- a/pavelib/quality.py +++ b/pavelib/quality.py @@ -771,7 +771,7 @@ def _extract_missing_pii_annotations(filename): 2. A bool indicating whether the coverage is still below the threshold, and 3. The full report as a string. """ - uncovered_models = None + uncovered_models = 0 pii_check_passed = True if os.path.isfile(filename): with io.open(filename, 'r') as report_file: diff --git a/pavelib/utils/db_utils.py b/pavelib/utils/db_utils.py index 09daf1511b..c82459704b 100644 --- a/pavelib/utils/db_utils.py +++ b/pavelib/utils/db_utils.py @@ -159,7 +159,7 @@ def get_file_from_s3(bucket_name, zipfile_name, path): """ Get the file from s3 and save it to disk. """ - print (u"Retrieving {} from bucket {}.".format(zipfile_name, bucket_name)) + print(u"Retrieving {} from bucket {}.".format(zipfile_name, bucket_name)) conn = boto.connect_s3(anon=True) bucket = conn.get_bucket(bucket_name) key = boto.s3.key.Key(bucket=bucket, name=zipfile_name) @@ -194,7 +194,7 @@ def refresh_bokchoy_db_cache_from_s3(fingerprint, bucket_name, bokchoy_db_files) zipfile_name = '{}.tar.gz'.format(fingerprint) get_file_from_s3(bucket_name, zipfile_name, path) zipfile_path = os.path.join(path, zipfile_name) - print ("Extracting db cache files.") + print("Extracting db cache files.") extract_files_from_zip(bokchoy_db_files, zipfile_path, path) os.remove(zipfile_path) diff --git a/scripts/thresholds.sh b/scripts/thresholds.sh index fde1c75365..aaa161061a 100755 --- a/scripts/thresholds.sh +++ b/scripts/thresholds.sh @@ -2,6 +2,6 @@ set -e export LOWER_PYLINT_THRESHOLD=1000 -export UPPER_PYLINT_THRESHOLD=2100 +export UPPER_PYLINT_THRESHOLD=3250 export ESLINT_THRESHOLD=5530 export STYLELINT_THRESHOLD=880 diff --git a/scripts/xblock/xblock_counts.py b/scripts/xblock/xblock_counts.py index 8c0f9aeef7..0fd4aec45a 100644 --- a/scripts/xblock/xblock_counts.py +++ b/scripts/xblock/xblock_counts.py @@ -217,7 +217,7 @@ def _get_course_block_counts(auth_token, block_url): response = requests.get(block_url, headers=headers) if response.status_code != 200: - print ("url {} returned status code {}".format(block_url, response.status_code)) + print("url {} returned status code {}".format(block_url, response.status_code)) return {} response_json = response.json()