Skip to content
Snippets Groups Projects
Commit 10c92ce69e2f authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:pencil: running dockerized isort

parent 7c7994ffc45e
No related branches found
Tags 20.3.1
No related merge requests found
...@@ -32,5 +32,5 @@ ...@@ -32,5 +32,5 @@
_logger = logging.getLogger(__name__) _logger = logging.getLogger(__name__)
__version__ = '1.1.4' __version__ = '1.1.5'
__date__ = '2017-08-11' __date__ = '2017-08-11'
...@@ -36,5 +36,5 @@ ...@@ -36,5 +36,5 @@
__date__ = '2017-08-11' __date__ = '2017-08-11'
__updated__ = '2018-07-31' __updated__ = '2018-08-20'
def which(program): def which(program):
...@@ -69,5 +69,5 @@ ...@@ -69,5 +69,5 @@
def isort(): def isort():
"""Run isort if found """Run isort
""" """
...@@ -73,10 +73,9 @@ ...@@ -73,10 +73,9 @@
""" """
if which('isort'): _logger.info('Running isort')
_logger.info('Running isort') call([
call(['isort', '-c']) 'docker', 'run', '--rm', '--volume',
else: '{}:/mnt'.format(os.environ['PWD']), 'xcgd/isort',
_logger.warning('No isort in PATH') 'sh', '-c', 'cd /mnt && isort -c'])
def main(argv=None): # IGNORE:C0111 def main(argv=None): # IGNORE:C0111
"""Parse arguments and launch conversion """Parse arguments and launch conversion
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment