Skip to content

Commit 1ad7171

Browse files
committed
Prevent autoflake to clean imports in module init files
1 parent deb2d0a commit 1ad7171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_python_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def update(self) -> Sequence[GeneratorError]:
7676

7777
def _reformat(self) -> None:
7878
subprocess.run(
79-
"autoflake -i -r --remove-all-unused-imports --remove-unused-variables .",
79+
"autoflake -i -r --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports .",
8080
cwd=self.package_dir,
8181
shell=True,
8282
stdout=subprocess.PIPE,

0 commit comments

Comments
 (0)