Skip to content

Commit 497c994

Browse files
committed
Don't add discovered extra path if it's a source path
We don't want to have duplicated paths between extra and source paths either, otherwise things will be processed twice. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 5e860c1 commit 497c994

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

RELEASE_NOTES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252

5353
- The distribution package doesn't include tests and other useless files anymore.
5454

55+
- nox: When discovering path *extra paths*, now paths will not be added if they are also *source paths*, as we don't want any duplicates.
56+
5557
### Cookiecutter template
5658

5759
- Now the CI workflow will checkout the submodules.

src/frequenz/repo/config/nox/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def __post_init__(self) -> None:
9292
This will add extra paths discovered in config files and other sources.
9393
"""
9494
for path in _util.discover_paths():
95-
if path not in self.extra_paths:
95+
if path not in self.extra_paths and path not in self.source_paths:
9696
self.extra_paths.append(path)
9797

9898
def copy(self, /) -> Self:

0 commit comments

Comments
 (0)