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.

line_too_long.py 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # pylint: disable=invalid-encoded-data, fixme
  2. # +1: [line-too-long]
  3. #####################################################################################################
  4. # +1: [line-too-long]
  5. """ that one is too long tooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo loooooong"""
  6. # The next line is exactly 80 characters long.
  7. A = '--------------------------------------------------------------------------'
  8. # Do not trigger the line-too-long warning if the only token that makes the
  9. # line longer than 80 characters is a trailing pylint disable.
  10. var = 'This line has a disable pragma and whitespace trailing beyond 80 chars. ' # pylint:disable=invalid-name
  11. # +1: [line-too-long]
  12. badname = 'This line is already longer than 100 characters even without the pragma. Trust me. Please.' # pylint:disable=invalid-name
  13. # http://example.com/this/is/a/very/long/url?but=splitting&urls=is&a=pain&so=they&can=be&long
  14. # +1: [line-too-long]
  15. # This line is toooooooooooooooooooooooooooooooooooooooooooooooo looooooooooooooooooooooooooooooooooooooooong #pylint: disable=fixme
  16. # +1: [line-too-long]
  17. #TODO: This line is toooooooooooooooooooooooooooooooooooooooooooooooo looooooooooooooooooooooooooooooooooooooooong #pylint: disable=fixme
  18. def function():
  19. # +3: [line-too-long]
  20. """This is a docstring.
  21. That contains a very, very long line that exceeds the 100 characters limit by a good margin. So good?
  22. """
  23. pass
  24. # Don't crash when the line is in a docstring
  25. def func_with_long(parameter):
  26. """
  27. # pylint: disable=line-too-long
  28. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccccccccccccccccccccccc
  29. """
  30. return parameter