git-stalk-cli icon indicating copy to clipboard operation
git-stalk-cli copied to clipboard

Fix linting for python2.7

Open gpetrousov opened this issue 7 years ago • 0 comments

Currently the linting tests complain about the usage of the 'print' statement as a function.

The command "pytest --mccabe -m mccabe" exited with 1. ... =================================== FAILURES =================================== _________________________ [pylint] git_stalk/stalk.py __________________________ C: 87, 0: Unnecessary parens after 'print' keyword (superfluous-parens) C: 88, 0: Unnecessary parens after 'print' keyword (superfluous-parens) C: 89, 0: Unnecessary parens after 'print' keyword (superfluous-parens) C: 90, 0: Unnecessary parens after 'print' keyword (superfluous-parens) ...

Suggestion(s):

  • We need to fix this by adjust either travis file to use environments
  • Import future print function as suggested here https://stackoverflow.com/questions/28694380/pylint-says-unnecessary-parens-after-r-keyword

gpetrousov avatar Oct 22 '18 12:10 gpetrousov