cnap-cobre/synapse

View on GitHub
backend/apps/transfer/directory_tasks.py

Summary

Maintainability
A
0 mins
Test Coverage

Showing 10 of 10 total issues

Line too long (93 > 79 characters)
Open

print("FROM DIR Path %s ... TO DIR Path %s" % (childDirFromPath, childDirToPath))

Line too long (82 > 79 characters)
Open

directory_listing = adapter.list_directory(file.fromPath, file.batch.user)

Line too long (96 > 79 characters)
Open

childToPath = '/'.join(file.toPath.split('/')[0:-1] + childFromPath.split('/')[-1:])

Line too long (80 > 79 characters)
Open

print("From Path %s .... To Path %s" % (childFromPath, childToPath))

Line too long (102 > 79 characters)
Open

childDirToPath = '/'.join(file.toPath.split('/')[0:-1] + childDirFromPath.split('/')[-2:])

Expected 2 blank lines, found 1
Open

@shared_task(bind=True, time_limit=90, default_retry_delay=10, max_retries=5)

No newline at end of file
Open

self.retry()

Expected 2 blank lines, found 1
Open

@shared_task(bind=True, time_limit=30, default_retry_delay=5, max_retries=3)

Do not use bare 'except'
Open

except:

Do not use bare 'except'
Open

except:

There are no issues that match your filters.

Category
Status