Skip to content

Commit 6560a86

Browse files
committed
fix: minor issues noticed by CoPilot
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 7246393 commit 6560a86

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

docs/about/changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Fixes:
99

1010
- Improve `.gitignore` iteration speed by @silversquirl in #1103
1111
- Warn on 3.13.4 on Windows by @henryiii in #1104
12-
- Add logging explaining why a file is included/excluded by @henryiii in #1110
12+
- Add debug logging explaining why a file is included/excluded by @henryiii in
13+
#1110
1314

1415
Documentation:
1516

src/scikit_build_core/build/_file_processor.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,28 +73,28 @@ def each_unignored_file(
7373
for p in all_paths:
7474
# Always include something included
7575
if include_spec.match_file(p):
76-
logger.info("Including {} because it is explicitly included.", p)
76+
logger.debug("Including {} because it is explicitly included.", p)
7777
yield p
7878
continue
7979

8080
# Always exclude something excluded
8181
if user_exclude_spec.match_file(p):
82-
logger.info(
82+
logger.debug(
8383
"Excluding {} because it is explicitly excluded by the user.", p
8484
)
8585
continue
8686

8787
# Ignore from global ignore
8888
if global_exclude_spec.match_file(p):
89-
logger.info(
89+
logger.debug(
9090
"Excluding {} because it is explicitly excluded by the global ignore.",
9191
p,
9292
)
9393
continue
9494

9595
# Ignore built-in patterns
9696
if builtin_exclude_spec.match_file(p):
97-
logger.info(
97+
logger.debug(
9898
"Excluding {} because it is excluded by the built-in ignore patterns.",
9999
p,
100100
)
@@ -106,8 +106,8 @@ def each_unignored_file(
106106
for np, nex in nested_excludes.items()
107107
if dirpath == np or np in dirpath.parents
108108
):
109-
logger.info(
110-
"Excluding {} because it is explicitly included by nested ignore.",
109+
logger.debug(
110+
"Excluding {} because it is explicitly excluded by nested ignore.",
111111
p,
112112
)
113113
continue

0 commit comments

Comments
 (0)