Repository navigation
Commit 200b6f5
fix(codegen): restore codestyle-doc-tests compliance after botocore sync (#6523)
* fix(codegen): avoid double blank line before logger in resources.py
The generated sagemaker-core resources.py had two blank lines between the
import block and the module logger, which black collapses to one — failing
codestyle-doc-tests (sagemaker-core) black-check. The import block ends
with "\n\n" and LOGGER_STRING began with a leading newline, so together
they emitted the extra blank line.
- tools/constants.py: drop the leading newline from LOGGER_STRING so
regenerated resources.py is black-clean (durable fix; prevents the next
daily Botocore sync from reintroducing it).
- resources.py: reformat the currently-committed file to match.
* fix(codegen): restore module docstrings in config_schema and shape_dag
The daily Botocore sync (#6520) regenerated config_schema.py and
shape_dag.py without their module docstrings, failing
codestyle-doc-tests (sagemaker-core) docstyle (pydocstyle D100: missing
docstring in public module).
- config_schema.py / shape_dag.py: restore the module docstrings.
- tools/resources_codegen.py / tools/shapes_extractor.py: emit the module
docstring when generating these files so future daily syncs stay
docstyle-clean (durable fix).
---------
Co-authored-by: Roja Reddy Sareddy <rsareddy@amazon.com>1 parent f43ed99 commit 200b6f5
6 files changed
Lines changed: 7 additions & 3 deletions
File tree
- sagemaker-core/src/sagemaker/core
- tools
- utils/code_injection
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2115 | 2115 | | |
2116 | 2116 | | |
2117 | 2117 | | |
| 2118 | + | |
2118 | 2119 | | |
2119 | 2120 | | |
2120 | 2121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
0 commit comments