summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-11-29 15:08:56 +0000
committerQMK Bot <hello@qmk.fm>2021-11-29 15:08:56 +0000
commita3e9b347ecbb55a58dfca4bb7a47e5abd21f6369 (patch)
tree59bf4de548a608e371cdbe53f9fab5604e202ed6 /lib
parent5ebeb32ec09e0c4ad4221a88bb21e79619f2091e (diff)
parent285afa3a8a2c3ae6ad4efffecdc96108f1b2fadc (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib')
-rw-r--r--lib/python/qmk/cli/format/c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/format/c.py b/lib/python/qmk/cli/format/c.py
index 0160e6036f..568684ed56 100644
--- a/lib/python/qmk/cli/format/c.py
+++ b/lib/python/qmk/cli/format/c.py
@@ -74,7 +74,7 @@ def filter_files(files, core_only=False):
# The following statement checks each file to see if the file path is
# - in the core directories
# - not in the ignored directories
- if not any(i in str(file) for i in core_dirs) or any(i in str(file) for i in ignored):
+ if not any(str(file).startswith(i) for i in core_dirs) or any(str(file).startswith(i) for i in ignored):
files[index] = None
cli.log.debug("Skipping non-core file %s, as '--core-only' is used.", file)