src/functional_tests/test_db.py
Function test_add_remove_collaborator
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def test_add_remove_collaborator(self):
# must be lowercase
eazyE = 'delete_me_eazye'
dre = 'delete_me_dre'
snoop = 'delete_me_snoop'
Function test_public_repo
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def test_public_repo(self):
# Django migrations.RunPython doesn't happen before each test.
# To work around this we call some methods (that should have been done
# in migrations) here.
# Django 1.8/1.9 https://code.djangoproject.com/ticket/23640
Do not use bare 'except' Open
Open
except:
- Read upRead up
- Exclude checks
When catching exceptions, mention specific exceptions when possible.
Okay: except Exception:
Okay: except BaseException:
E722: except:
Missing whitespace after keyword Open
Open
from account.management.commands.createpublicanonuser import(
- Read upRead up
- Exclude checks
Multiple imports in form from x import (a, b, c) should have space between import statement and parenthesised name list.
Okay: from foo import (bar, baz)
E275: from foo import(bar, baz)
E275: from importable.module import(bar, baz)
Do not use bare 'except' Open
Open
except:
- Read upRead up
- Exclude checks
When catching exceptions, mention specific exceptions when possible.
Okay: except Exception:
Okay: except BaseException:
E722: except:
Do not use bare 'except' Open
Open
except:
- Read upRead up
- Exclude checks
When catching exceptions, mention specific exceptions when possible.
Okay: except Exception:
Okay: except BaseException:
E722: except: