Skip to content

Commit 3ca9e7c

Browse files
committed
Use --recursive option for autopep8 instead of passing exact files
When a new folder will be added autopep8 will automatically descend in to it instead of having to pass new folder manually.
1 parent a792094 commit 3ca9e7c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/run_py_linters.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,9 @@ def get_all_python_files() -> List[Path]:
103103

104104

105105
def formater_main() -> None:
106-
all_python_files = get_all_python_files()
107106

108107
run(
109-
args=('autopep8', '--in-place', *all_python_files),
108+
args=('autopep8', '--recursive', '--in-place', *all_python_modules),
110109
check=True,
111110
)
112111

@@ -115,7 +114,7 @@ def formater_main() -> None:
115114
'isort',
116115
'-m', 'VERTICAL_HANGING_INDENT',
117116
'--trailing-comma',
118-
*all_python_files,
117+
*all_python_modules,
119118
),
120119
check=True,
121120
)

0 commit comments

Comments
 (0)