Python Requirements Update (#29516)
* chore: Updating Python Requirements * fix: fix pylint issues Co-authored-by: Mohammad Ahtasham ul Hassan <mohammad.ahtasham@arbisoft.com>
This commit is contained in:
committed by
GitHub
parent
5d5a11fc16
commit
bb20b17428
@@ -82,7 +82,7 @@ class CourseRunTeamSerializerMixin(serializers.Serializer): # lint-amnesty, pyl
|
||||
|
||||
def image_is_jpeg_or_png(value):
|
||||
content_type = value.content_type
|
||||
if content_type not in list(IMAGE_TYPES.keys()):
|
||||
if content_type not in list(IMAGE_TYPES.keys()): # lint-amnesty, pylint: disable=consider-iterating-dictionary
|
||||
raise serializers.ValidationError(
|
||||
f'Only JPEG and PNG image types are supported. {content_type} is not valid')
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ def validate_transcript_credentials(provider, **credentials):
|
||||
must_have_props = ['api_key', 'username']
|
||||
|
||||
missing = [
|
||||
must_have_prop for must_have_prop in must_have_props if must_have_prop not in list(credentials.keys())
|
||||
must_have_prop for must_have_prop in must_have_props if must_have_prop not in list(credentials.keys()) # lint-amnesty, pylint: disable=consider-iterating-dictionary
|
||||
]
|
||||
if missing:
|
||||
error_message = '{missing} must be specified.'.format(missing=' and '.join(missing))
|
||||
|
||||
@@ -285,7 +285,7 @@ def validate_transcript_preferences(provider, cielo24_fidelity, cielo24_turnarou
|
||||
|
||||
# validate transcription providers
|
||||
transcription_plans = get_3rd_party_transcription_plans()
|
||||
if provider in list(transcription_plans.keys()):
|
||||
if provider in list(transcription_plans.keys()): # lint-amnesty, pylint: disable=consider-iterating-dictionary
|
||||
|
||||
# Further validations for providers
|
||||
if provider == TranscriptProvider.CIELO24:
|
||||
|
||||
Reference in New Issue
Block a user