File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,12 @@ def main(check=False):
98
98
filepaths .append (os .path .join (root , filename ))
99
99
100
100
unasync .unasync_files (filepaths , rules )
101
+ output_dirs = []
101
102
for dir in source_dirs :
102
- output_dir = f"{ dir [0 ]} _sync_check/" if check else dir [1 ]
103
- subprocess .check_call (["black" , "--target-version=py38" , output_dir ])
104
- subprocess .check_call (["isort" , output_dir ])
103
+ output_dirs .append (f"{ dir [0 ]} _sync_check/" if check else dir [1 ])
104
+ subprocess .check_call (["black" , "--target-version=py38" , * output_dirs ])
105
+ subprocess .check_call (["isort" , * output_dirs ])
106
+ for dir , output_dir in zip (source_dirs , output_dirs ):
105
107
for file in glob ("*.py" , root_dir = dir [0 ]):
106
108
# remove asyncio from sync files
107
109
subprocess .check_call (
You can’t perform that action at this time.
0 commit comments