lias

reformatted imports via the command line.


Keywords
format, imports
License
MIT
Install
pip install lias==0.3.0

Documentation

lias

PyPI version License: MIT

lias: isort, but smarter

lias 是一个 package imports 格式化工具,来自 isort,支持格式化多个文件夹代码。

安装

$ pip install lias

用法

$ lias
usage: lias [-h] [-v] [PATHS [PATHS ...]]

Format imports via command line with `isort`

positional arguments:
  PATHS          Files and directories that should be executed format command.

optional arguments:
  -h, --help     show this help message and exit
  -v, --version  Displays the current version of lias

示例

$ lias {source_file/source_dir}

# 格式化文件
# lias code.py

# 格式化单文件夹
# lias code/*.py

# 格式化多文件夹
# lias code/*.py test/*.py

LICENSE

MIT ©chenjiandongx