File tree 5 files changed +12
-2
lines changed
end_to_end_tests/golden-record/my_test_api_client
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
12
12
### Fixes
13
13
14
14
- 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 !)
15
16
- Update minimum Pydantic version to support Python 3.9
16
17
17
18
### Additions
Original file line number Diff line number Diff line change 1
1
""" A client library for accessing My Test API """
2
+ from .client import AuthenticatedClient , Client
Original file line number Diff line number Diff line change 1
1
""" 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]:
77
77
78
78
def _reformat (self ) -> None :
79
79
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 ." ,
81
81
cwd = self .package_dir ,
82
82
shell = True ,
83
83
stdout = subprocess .PIPE ,
Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ def test__reformat(mocker):
382
382
sub_run .assert_has_calls (
383
383
[
384
384
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 ." ,
386
386
cwd = project .package_dir ,
387
387
shell = True ,
388
388
stdout = subprocess .PIPE ,
You can’t perform that action at this time.
0 commit comments