diff --git a/docker_dev_start.py b/docker_dev_start.py index 7c7994ffc45eed1801480cc8fe2be18fd4b2e144_ZG9ja2VyX2Rldl9zdGFydC5weQ==..10c92ce69e2fcc8c63890ade90b0c1485425cb2c_ZG9ja2VyX2Rldl9zdGFydC5weQ== 100755 --- a/docker_dev_start.py +++ b/docker_dev_start.py @@ -32,5 +32,5 @@ _logger = logging.getLogger(__name__) -__version__ = '1.1.4' +__version__ = '1.1.5' __date__ = '2017-08-11' @@ -36,5 +36,5 @@ __date__ = '2017-08-11' -__updated__ = '2018-07-31' +__updated__ = '2018-08-20' def which(program): @@ -69,5 +69,5 @@ def isort(): - """Run isort if found + """Run isort """ @@ -73,10 +73,9 @@ """ - if which('isort'): - _logger.info('Running isort') - call(['isort', '-c']) - else: - _logger.warning('No isort in PATH') - + _logger.info('Running isort') + call([ + 'docker', 'run', '--rm', '--volume', + '{}:/mnt'.format(os.environ['PWD']), 'xcgd/isort', + 'sh', '-c', 'cd /mnt && isort -c']) def main(argv=None): # IGNORE:C0111 """Parse arguments and launch conversion