Skip to content

Commit

Permalink
chore: reformat for quality checks again
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Oct 10, 2023
1 parent 172a484 commit d978932
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ test: clean ## run tests in the current virtualenv
pytest

format: ## Format code automatically
isort $(SOURCES)
black $(BLACK_OPTS)
isort $(SOURCES)

diff_cover: test ## find diff lines that need test coverage
diff-cover coverage.xml
Expand Down
4 changes: 3 additions & 1 deletion platform_plugin_turnitin/turnitin.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ def generate_similarity_report(
Returns:
dict: The status of the similarity report generation process.
"""
payload = getattr(settings, "TURNITIN_SIMILARY_REPORT_PAYLOAD") # pylint: disable=literal-used-as-attribute
payload = getattr( # pylint: disable=literal-used-as-attribute
settings, "TURNITIN_SIMILARY_REPORT_PAYLOAD"
)
current_user = self.get_django_user()
try:
last_submission = TurnitinSubmission.objects.filter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ def turnitin_api_handler(
headers["Content-Type"] = "binary/octet-stream"
headers["Content-Disposition"] = f'inline; filename="{uploaded_file.name}"'
response = requests.put(
f"{TII_API_URL}/api/v1/{url_prefix}", headers=headers, data=uploaded_file,
timeout=settings.TURNITIN_API_TIMEOUT
f"{TII_API_URL}/api/v1/{url_prefix}",
headers=headers,
data=uploaded_file,
timeout=settings.TURNITIN_API_TIMEOUT,
)
return response

Expand Down

0 comments on commit d978932

Please sign in to comment.