Commit 22be0ee
committed
template: Make isort exclude submodules from API projects
API repositories can include external git submodules under
`submodules/`, and those submodules may not use isort or the
repository's import-ordering rules.
The isort migration workflow runs `isort .`, so without an explicit
exclusion it can descend into external submodules and fail or modify
code outside the generated project. Add `skip_glob = ["submodules/*"]`
to the API-only branch of the generated `[tool.isort]` configuration.
Regenerated the public and proprietary API golden fixtures.
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>1 parent a459500 commit 22be0ee
3 files changed
Lines changed: 8 additions & 0 deletions
File tree
- cookiecutter/{{cookiecutter.github_repo_name}}
- tests_golden/integration/test_cookiecutter_generation
- api-proprietary/frequenz-api-test
- api/frequenz-api-test
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
0 commit comments