diff --git a/meta/classes-recipe/core-image.bbclass b/meta/classes-recipe/core-image.bbclass
index 994185ed4c..167fa97fd9 100644
--- a/meta/classes-recipe/core-image.bbclass
+++ b/meta/classes-recipe/core-image.bbclass
@@ -5,7 +5,7 @@
 # SPDX-License-Identifier: MIT
 
 # IMAGE_FEATURES control the content of the core reference images
-# 
+#
 # By default we install packagegroup-core-boot and packagegroup-base-extended packages;
 # this gives us a working (console only) rootfs.
 #
diff --git a/meta/classes-recipe/gobject-introspection.bbclass b/meta/classes-recipe/gobject-introspection.bbclass
index d0052cd623..3f6ccaa02e 100644
--- a/meta/classes-recipe/gobject-introspection.bbclass
+++ b/meta/classes-recipe/gobject-introspection.bbclass
@@ -57,8 +57,8 @@ do_compile:prepend() {
 
 # .typelib files are needed at runtime and so they go to the main package (so
 # they'll be together with libraries they support).
-FILES:${PN}:append = " ${libdir}/girepository-*/*.typelib" 
-    
+FILES:${PN}:append = " ${libdir}/girepository-*/*.typelib"
+
 # .gir files go to dev package, as they're needed for developing (but not for
 # running) things that depends on introspection.
 FILES:${PN}-dev:append = " ${datadir}/gir-*/*.gir ${libdir}/gir-*/*.gir"
diff --git a/meta/classes-recipe/kernel-yocto.bbclass b/meta/classes-recipe/kernel-yocto.bbclass
index 5464aa1115..628823ff54 100644
--- a/meta/classes-recipe/kernel-yocto.bbclass
+++ b/meta/classes-recipe/kernel-yocto.bbclass
@@ -98,7 +98,7 @@ def get_machine_branch(d, default):
             btype = urldata.parm.get("type")
             if btype != "kmeta":
                 return branches[0]
-	    
+
     return default
 
 # returns a list of all directories that are on FILESEXTRAPATHS (and
@@ -425,11 +425,11 @@ do_kernel_checkout() {
 		# checkout and clobber any unimportant files
 		git checkout -f ${machine_branch}
 	else
-		# case: we have no git repository at all. 
-		# To support low bandwidth options for building the kernel, we'll just 
+		# case: we have no git repository at all.
+		# To support low bandwidth options for building the kernel, we'll just
 		# convert the tree to a git repo and let the rest of the process work unchanged
-		
-		# if ${S} hasn't been set to the proper subdirectory a default of "linux" is 
+
+		# if ${S} hasn't been set to the proper subdirectory a default of "linux" is
 		# used, but we can't initialize that empty directory. So check it and throw a
 		# clear error
 
diff --git a/meta/classes-recipe/lib_package.bbclass b/meta/classes-recipe/lib_package.bbclass
index 2a944268c8..ef0b3c3e15 100644
--- a/meta/classes-recipe/lib_package.bbclass
+++ b/meta/classes-recipe/lib_package.bbclass
@@ -8,5 +8,5 @@
 #
 # We need to allow the other packages to be greedy with what they
 # want out of /usr/bin and /usr/sbin before ${PN}-bin gets greedy.
-# 
+#
 PACKAGE_BEFORE_PN += "${PN}-bin"
diff --git a/meta/classes-recipe/libc-package.bbclass b/meta/classes-recipe/libc-package.bbclass
index 73b7f5a708..560e935069 100644
--- a/meta/classes-recipe/libc-package.bbclass
+++ b/meta/classes-recipe/libc-package.bbclass
@@ -68,7 +68,7 @@ do_prep_locale_tree() {
 	mkdir -p $treedir/${base_bindir} $treedir/${base_libdir} $treedir/${datadir} $treedir/${localedir}
 	tar -cf - -C ${LOCALETREESRC}${datadir} -p i18n | tar -xf - -C $treedir/${datadir}
 	# unzip to avoid parsing errors
-	for i in $treedir/${datadir}/i18n/charmaps/*gz; do 
+	for i in $treedir/${datadir}/i18n/charmaps/*gz; do
 		gunzip $i
 	done
 	# The extract pattern "./l*.so*" is carefully selected so that it will
@@ -283,8 +283,8 @@ python package_do_split_gconvs () {
 
             cmd = "PATH=\"%s\" I18NPATH=\"%s\" GCONV_PATH=\"%s\" cross-localedef %s" % \
                 (path, i18npath, gconvpath, localedef_opts)
-        else: # earlier slower qemu way 
-            qemu = qemu_target_binary(d) 
+        else: # earlier slower qemu way
+            qemu = qemu_target_binary(d)
             localedef_opts = "--force --no-hard-links --no-archive --prefix=%s \
                 --inputfile=%s/i18n/locales/%s --charmap=%s %s" \
                 % (treedir, datadir, locale, encoding, name)
diff --git a/meta/classes-recipe/mime-xdg.bbclass b/meta/classes-recipe/mime-xdg.bbclass
index cbdcb4c7e9..7786c2d544 100644
--- a/meta/classes-recipe/mime-xdg.bbclass
+++ b/meta/classes-recipe/mime-xdg.bbclass
@@ -3,7 +3,7 @@
 #
 # SPDX-License-Identifier: MIT
 #
-# This class creates mime <-> application associations based on entry 
+# This class creates mime <-> application associations based on entry
 # 'MimeType' in *.desktop files
 #
 
diff --git a/meta/classes-recipe/multilib_header.bbclass b/meta/classes-recipe/multilib_header.bbclass
index 33f7e027f0..dd65fc02fa 100644
--- a/meta/classes-recipe/multilib_header.bbclass
+++ b/meta/classes-recipe/multilib_header.bbclass
@@ -24,9 +24,9 @@ oe_multilib_header() {
         case ${TARGET_ARCH} in
         mips*)  case "${MIPSPKGSFX_ABI}" in
                 "-n32")
-                       ident=n32   
+                       ident=n32
                        ;;
-                *)     
+                *)
                        ident=${SITEINFO_BITS}
                        ;;
                 esac
diff --git a/meta/classes-recipe/populate_sdk_ext.bbclass b/meta/classes-recipe/populate_sdk_ext.bbclass
index b75c8926a7..a1188da969 100644
--- a/meta/classes-recipe/populate_sdk_ext.bbclass
+++ b/meta/classes-recipe/populate_sdk_ext.bbclass
@@ -121,7 +121,7 @@ python write_host_sdk_ext_manifest () {
                 f.write("%s %s %s\n" % (info[1], info[2], info[3]))
 }
 
-SDK_POSTPROCESS_COMMAND:append:task-populate-sdk-ext = " write_target_sdk_ext_manifest write_host_sdk_ext_manifest"    
+SDK_POSTPROCESS_COMMAND:append:task-populate-sdk-ext = " write_target_sdk_ext_manifest write_host_sdk_ext_manifest"
 
 SDK_TITLE:task-populate-sdk-ext = "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} Extensible SDK"
 
diff --git a/meta/classes-recipe/ptest-cargo.bbclass b/meta/classes-recipe/ptest-cargo.bbclass
index 2e008b306a..62444e9cc6 100644
--- a/meta/classes-recipe/ptest-cargo.bbclass
+++ b/meta/classes-recipe/ptest-cargo.bbclass
@@ -107,7 +107,7 @@ python do_install_ptest_cargo() {
             f.write("#!/bin/sh\n")
         else:
             f.write(f"\necho \"\"\n")
-            f.write(f"echo \"## starting to run rust tests ##\"\n")               
+            f.write(f"echo \"## starting to run rust tests ##\"\n")
         f.write("if [ -z \"$rc\" ]; then rc=0; fi\n")
         for test_path in test_paths:
             script = textwrap.dedent(f"""\
@@ -120,7 +120,7 @@ python do_install_ptest_cargo() {
                 fi
             """)
             f.write(script)
-        
+
         f.write("exit $rc\n")
 
     if not script_exists:
diff --git a/meta/classes-recipe/ptest-python-pytest.bbclass b/meta/classes-recipe/ptest-python-pytest.bbclass
index a4615e12bf..57dbcda7ab 100644
--- a/meta/classes-recipe/ptest-python-pytest.bbclass
+++ b/meta/classes-recipe/ptest-python-pytest.bbclass
@@ -12,10 +12,10 @@ PTEST_PYTEST_DIR ?= "tests"
 
 do_install_ptest() {
 	# Check if the recipe provides its own version of run-ptest
-	# If nothing exists in the SRC_URI, dynamically create a 
+	# If nothing exists in the SRC_URI, dynamically create a
 	# run-test script of "last resort" that has the default
 	# pytest behavior.
-	# 
+	#
 	# Users can override this behavior by simply including a
 	# custom script (run-ptest) in the source file list
 	if [ ! -f "${UNPACKDIR}/run-ptest" ]; then
diff --git a/meta/classes-recipe/uboot-config.bbclass b/meta/classes-recipe/uboot-config.bbclass
index 9e24db1f48..412b2c7c57 100644
--- a/meta/classes-recipe/uboot-config.bbclass
+++ b/meta/classes-recipe/uboot-config.bbclass
@@ -181,7 +181,7 @@ python () {
             binary = ubootbinary
             imagefstype = ""
             for f, v in ubootconfigflags.items():
-                if config == f: 
+                if config == f:
                     found = True
                     items = v.split(',')
                     if items[0] and len(items) > 1:
