File tree Expand file tree Collapse file tree 5 files changed +12
-2
lines changed
end_to_end_tests/golden-record/my_test_api_client Expand file tree Collapse file tree 5 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212### Fixes
1313
1414- Prefix generated identifiers to allow leading digits in field names (#206 - @kalzoo ).
15+ - Prevent autoflake from removing ` __init__.py ` imports during generation. (#223 - Thanks @fyhertz !)
1516- Update minimum Pydantic version to support Python 3.9
1617
1718### Additions
Original file line number Diff line number Diff line change 11""" A client library for accessing My Test API """
2+ from .client import AuthenticatedClient , Client
Original file line number Diff line number Diff line change 11""" Contains all the data models used in inputs/outputs """
2+
3+ from .a_model import AModel
4+ from .an_enum import AnEnum
5+ from .an_int_enum import AnIntEnum
6+ from .body_upload_file_tests_upload_post import BodyUploadFileTestsUploadPost
7+ from .different_enum import DifferentEnum
8+ from .http_validation_error import HTTPValidationError
9+ from .validation_error import ValidationError
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ def update(self) -> Sequence[GeneratorError]:
7777
7878 def _reformat (self ) -> None :
7979 subprocess .run (
80- "autoflake -i -r --remove-all-unused-imports --remove-unused-variables ." ,
80+ "autoflake -i -r --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports ." ,
8181 cwd = self .package_dir ,
8282 shell = True ,
8383 stdout = subprocess .PIPE ,
Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ def test__reformat(mocker):
382382 sub_run .assert_has_calls (
383383 [
384384 mocker .call (
385- "autoflake -i -r --remove-all-unused-imports --remove-unused-variables ." ,
385+ "autoflake -i -r --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports ." ,
386386 cwd = project .package_dir ,
387387 shell = True ,
388388 stdout = subprocess .PIPE ,
You can’t perform that action at this time.
0 commit comments