Skip to content

Commit

Permalink
Run linter for all Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-wisiol committed Aug 7, 2019
1 parent 7401e62 commit cbab22f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
This command line tool is used to start the python code analysis. For this purpose it uses pep8 for coding conventions
and pylint for extended issues.
"""
from sys import argv, executable
from argparse import ArgumentParser
from subprocess import call
from fnmatch import filter as fn_filter
from os import walk, path
from functools import reduce
import platform
from os import walk, path
from subprocess import call
from sys import argv, executable


def main(arguments):
Expand Down Expand Up @@ -74,7 +73,5 @@ def main(arguments):
exit(returncode)


# astroid/pylint is incompatible with Python 3.7
# Since travis runs the linter for Python 3.6, we don't need to run it again.
if __name__ == '__main__' and platform.python_version_tuple()[0:2] != ('3', '7'):
if __name__ == '__main__':
main(argv[1:])

0 comments on commit cbab22f

Please sign in to comment.