Created
February 20, 2023 14:29
-
-
Save curegit/4d2c3bcb53ad5aa8a115978bbe46f311 to your computer and use it in GitHub Desktop.
yapf でタブインデントのまま、概ね pep8 に合わせるコマンド
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
# 通常の場合 | |
yapf -r -i --style="{based_on_style: pep8, indent_width: 4, column_limit: 160}" . | |
# タブインデントの場合 | |
yapf -r -i --style="{based_on_style: pep8, indent_width: 4, use_tabs: True, column_limit: 160}" . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment