summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorvvxxp82021-01-07 11:09:46 +0800
committervvxxp82021-01-07 11:09:46 +0800
commit87163cca09d54e95cb886b76855f7ec2f5204e66 (patch)
treec43ff9b82b1129b321b95afb6c617fcbbc24db08
parentccd7385e1b0cd9ca3c32ea81e85c19f36fe7db8e (diff)
downloadaur-87163cca09d54e95cb886b76855f7ec2f5204e66.tar.gz
change --line-length to 90
-rwxr-xr-xblack_pycharm_formatter.py4
-rwxr-xr-xblack_pycharm_formatter.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/black_pycharm_formatter.py b/black_pycharm_formatter.py
index ce8fa6b84269..ad378dd37db9 100755
--- a/black_pycharm_formatter.py
+++ b/black_pycharm_formatter.py
@@ -7,9 +7,9 @@ if __name__ == "__main__":
file_path = sys.argv[1]
file_ext = file_path.split('.')[-1]
if file_ext == 'py':
- cmd = 'black -l 80 -S ' + file_path
+ cmd = 'black -l 90 -S ' + file_path
elif file_ext == 'ipynb':
- cmd = 'jupytext ' + file_path + ' --pipe "black -l 80 -S {}"'
+ cmd = 'jupytext ' + file_path + ' --pipe "black -l 90 -S {}"'
elif file_ext == 'sh':
cmd = 'shfmt -w ' + file_path
else:
diff --git a/black_pycharm_formatter.sh b/black_pycharm_formatter.sh
index 9b055d8575dc..f831370793af 100755
--- a/black_pycharm_formatter.sh
+++ b/black_pycharm_formatter.sh
@@ -4,10 +4,10 @@ file_path=$1
ext=${file_path##*.}
case $ext in
"py")
- black -l 80 -S $file_path
+ black -l 90 -S $file_path
;;
"ipynb")
- jupytext $file_path --pipe "black -l 80 -S {}"
+ jupytext $file_path --pipe "black -l 90 -S {}"
;;
"sh")
shfmt -w $file_path