Add flake8-ycm to test requirements

Fix errors reported by flake8-ycm.
This commit is contained in:
micbou 2018-05-30 01:00:49 +02:00
parent 8e448920c9
commit 6b4d705238
No known key found for this signature in database
GPG Key ID: C7E8FD1F3BDA1E05
15 changed files with 131 additions and 129 deletions

View File

@ -1,5 +1,6 @@
flake8 >= 3.0.0 flake8 >= 3.0.0
flake8-comprehensions >= 1.4.1 flake8-comprehensions >= 1.4.1
flake8-ycm >= 0.1.0
mock >= 1.0.1 mock >= 1.0.1
nose >= 1.3.7 nose >= 1.3.7
PyHamcrest >= 1.8.0 PyHamcrest >= 1.8.0

View File

@ -977,7 +977,8 @@ def InsertNamespace( namespace ):
def SearchInCurrentBuffer( pattern ): def SearchInCurrentBuffer( pattern ):
""" Returns the 1-indexed line on which the pattern matches """ Returns the 1-indexed line on which the pattern matches
(going UP from the current position) or 0 if not found """ (going UP from the current position) or 0 if not found """
return GetIntValue( "search('{0}', 'Wcnb')".format( EscapeForVim( pattern ))) return GetIntValue(
"search('{0}', 'Wcnb')".format( EscapeForVim( pattern ) ) )
def LineTextInCurrentBuffer( line_number ): def LineTextInCurrentBuffer( line_number ):