Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

docstring.py 919B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. """Checks of Dosctrings 'docstring-first-line-empty' 'bad-docstring-quotes'"""
  2. def check_messages(*messages):
  3. """
  4. docstring"""
  5. return messages
  6. def function2():
  7. """Test Ok"""
  8. pass
  9. class FFFF(object):
  10. """
  11. Test Docstring First Line Empty
  12. """
  13. def method1(self):
  14. '''
  15. Test Triple Single Quotes docstring
  16. '''
  17. pass
  18. def method2(self):
  19. "bad docstring 1"
  20. pass
  21. def method3(self):
  22. 'bad docstring 2'
  23. pass
  24. def method4(self):
  25. ' """bad docstring 3 '
  26. pass
  27. @check_messages('bad-open-mode', 'redundant-unittest-assert',
  28. 'deprecated-module')
  29. def method5(self):
  30. """Test OK 1 with decorators"""
  31. pass
  32. def method6(self):
  33. r"""Test OK 2 with raw string"""
  34. pass
  35. def method7(self):
  36. u"""Test OK 3 with unicode string"""
  37. pass