-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matthew Peveler <[email protected]>
- Loading branch information
1 parent
3507550
commit e07e337
Showing
2 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import re | ||
|
||
|
||
def get_pylint_kwargs(pylint_version): | ||
""" Get the correct keyword arguments for the pylint runner. """ | ||
pylint_version = pylint_version.split('.')[:3] | ||
pylint_version[2] = re.sub(r'[a-z-].*', '', pylint_version[2]) | ||
pylint_version = [int(x) for x in pylint_version] | ||
if pylint_version < [2, 5, 1]: | ||
return {"do_exit": False} | ||
return {"exit": False} |