E25.py 876 B

123456789101112131415161718192021222324252627282930313233343536
  1. #: E251:11 E251:13
  2. def foo(bar = False):
  3. '''Test function with an error in declaration'''
  4. pass
  5. #: E251:8
  6. foo(bar= True)
  7. #: E251:7
  8. foo(bar =True)
  9. #: E251:7 E251:9
  10. foo(bar = True)
  11. #: E251:13
  12. y = bar(root= "sdasd")
  13. parser.add_argument('--long-option',
  14. #: E135+1:20
  15. default=
  16. "/rather/long/filesystem/path/here/blah/blah/blah")
  17. parser.add_argument('--long-option',
  18. default=
  19. "/rather/long/filesystem")
  20. # TODO this looks so stupid.
  21. parser.add_argument('--long-option', default
  22. ="/rather/long/filesystem/path/here/blah/blah/blah")
  23. #: E251+2:7 E251+2:9
  24. foo(True,
  25. baz=(1, 2),
  26. biz = 'foo'
  27. )
  28. # Okay
  29. foo(bar=(1 == 1))
  30. foo(bar=(1 != 1))
  31. foo(bar=(1 >= 1))
  32. foo(bar=(1 <= 1))
  33. (options, args) = parser.parse_args()
  34. d[type(None)] = _deepcopy_atomic