Skip to content

Commit a459500

Browse files
committed
isort: Exclude golden tests
Generate files used as golden tests are in a nested path, so isort doesn't recognize the source code properly to apply the right ordering (which is different for "project files" than for external dependencies). The golden tests files are already tested when doing the generation tests, where isort runs completely in the generated project, using the right config for that generated project, so we can ignore it for local runs. Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com> Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
1 parent 50fdf08 commit a459500

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ src_paths = [
138138
"tests",
139139
"cookiecutter/migrate.py",
140140
]
141-
skip_glob = ["cookiecutter/{{cookiecutter.github_repo_name}}/*"]
141+
skip_glob = [
142+
"cookiecutter/{{cookiecutter.github_repo_name}}/*",
143+
"tests_golden/integration/test_cookiecutter_generation/*",
144+
]
142145

143146
[tool.flake8]
144147
# We give some flexibility to go over 88, there are cases like long URLs or

0 commit comments

Comments
 (0)