diff --git a/GNUmakefile b/GNUmakefile index b107b38561c..77747c98ee0 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -502,6 +502,7 @@ check_spelling_py: .FORCE "$(BLENDER_DIR)/tools/check_source/check_spelling.py" \ --cache-file=$(CHECK_SPELLING_CACHE) \ --match=".*\.(py)$$" \ + "$(BLENDER_DIR)/release" \ "$(BLENDER_DIR)/scripts" \ "$(BLENDER_DIR)/source" \ "$(BLENDER_DIR)/tools" diff --git a/release/datafiles/blender_icons_geom.py b/release/datafiles/blender_icons_geom.py index b3d790bcf4a..8c8a674cab0 100644 --- a/release/datafiles/blender_icons_geom.py +++ b/release/datafiles/blender_icons_geom.py @@ -137,7 +137,7 @@ def mesh_data_lists_from_mesh(me, material_colors): tris_data = [] for p in me_polys: - # Note, all faces are handled, backfacing/zero area is checked just before writing. + # Note, all faces are handled, back-facing/zero area is checked just before writing. material_index = p.material_index if material_index < len(material_colors): base_color = material_colors[p.material_index] diff --git a/release/datafiles/blender_icons_geom_update.py b/release/datafiles/blender_icons_geom_update.py index 8de7bebe61d..75a79ae21e3 100755 --- a/release/datafiles/blender_icons_geom_update.py +++ b/release/datafiles/blender_icons_geom_update.py @@ -71,7 +71,7 @@ def main() -> int: # Collect icons files and update CMake. icon_files = [] - # create .dat geometry (which are stored in git) + # Create `.dat` geometry (which are stored in GIT). for blend in icons_blend: output_dir = os.path.join(BASEDIR, "icons") files_old = set(names_and_time_from_path(output_dir)) @@ -97,7 +97,7 @@ def main() -> int: files_new = set(names_and_time_from_path(output_dir)) icon_files.extend([ - name[:-4] # no .dat + name[:-4] # No `.dat`. for (name, _) in sorted((files_new - files_old)) ]) diff --git a/release/pypi/upload-release.py b/release/pypi/upload-release.py index 414970076f4..de58aabc780 100755 --- a/release/pypi/upload-release.py +++ b/release/pypi/upload-release.py @@ -44,7 +44,7 @@ def main(): print("Download:") for platform in platforms: - # Download from buildbot. + # Download from build-bot. version = args.version version_tokens = version.split(".") short_version = version_tokens[0] + version_tokens[1] diff --git a/release/release_notes/bug_fixes_per_major_release.py b/release/release_notes/bug_fixes_per_major_release.py index e4eb22b34e5..d24fb6a85e2 100644 --- a/release/release_notes/bug_fixes_per_major_release.py +++ b/release/release_notes/bug_fixes_per_major_release.py @@ -22,8 +22,7 @@ some missing commits), but it's significantly better than nothing. - Make sure the list `LIST_OF_OFFICIAL_BLENDER_VERSIONS` is up to date. - Open a terminal in your Blender source code folder and make sure the branches you're interested in are up to date. -- Launch `main.py` with relevant launch arguments. The required arguments -are: +- Launch `main.py` with relevant launch arguments. The required arguments are: - --current-version (-cv) - --previous-version (-pv) - --current-release-tag (-ct) @@ -80,7 +79,7 @@ are not included in the output of this script. can't sort it and so it's ignored. - If a user puts weird version numbers in their "Broken" or "Working" fields on their bug report, then this script could accidentally sorted -the assocaiated fix commit into the wrong catagory. +the associated fix commit into the wrong category. - This is a consequence of the simple nature of the system the script uses to extract Blender versions from a bug report. - The triaging team will do their best to remove problematic @@ -112,7 +111,7 @@ information required. The script is looking for `Major.Minor` Blender versions on lines that start with either "Broken" or "Working". So all the important information should go on these lines. So if a report says: -"It worked in 4.3", then it needs to be rephased to "Worked: 4.3" +"It worked in 4.3", then it needs to be rephrased to "Worked: 4.3" for the script to find it. The amount and type of information you put on each report will vary. @@ -193,9 +192,9 @@ PATH_TO_OVERRIDES = dir_of_script.joinpath('overrides.json') PATH_TO_CACHED_COMMITS = dir_of_script.joinpath('cached_commits.json') del dir_of_script -# Add recent Blender versions to this list, including indevelopment versions. +# Add recent Blender versions to this list, including in-development versions. # This list is used to identify if a version number found in a report is a valid version number. -# This is to help elimintate dates and other weird information people put +# This is to help eliminate dates and other weird information people put # in their reports in the format of a version number. LIST_OF_OFFICIAL_BLENDER_VERSIONS = ( @@ -301,7 +300,7 @@ class CommitInfo(): self.report_title = UNKNOWN self.classification = UNKNOWN - # Varibales below this point should not be saved to the cache. + # Variables below this point should not be saved to the cache. self.needs_update = True self.has_been_overwritten = False @@ -315,7 +314,7 @@ class CommitInfo(): self.fixed_reports = match def get_backports(self, dict_of_backports: dict[str, list[str]]) -> None: - # Figures out if the commit was backported, and to what verion(s). + # Figures out if the commit was back-ported, and to what version(s). if self.needs_update: for version_number in dict_of_backports: for backported_commit in dict_of_backports[version_number]: @@ -324,7 +323,7 @@ class CommitInfo(): break if len(self.backport_list) > 0: - # If the fix was backported to a old release, then it fixed a old issue. + # If the fix was back-ported to a old release, then it fixed a old issue. self.classification = FIXED_OLD_ISSUE def override_report_info(self, new_classification: str, new_title: str, new_module: str) -> None: @@ -536,10 +535,10 @@ def version_extraction(report_body: str) -> tuple[list[str], list[str]]: lower_line = line.lower() example_in_line = 'example' in lower_line if lower_line.startswith('brok') and not example_in_line: - # Use "brok" to be able to detect different variations of "broken". + # Use `brok` to be able to detect different variations of "broken". broken_lines += f'{line}\n' if lower_line.startswith('work'): - # Use "work" to be able to detect both "worked" and "working". + # Use `work` to be able to detect both "worked" and "working". if not example_in_line: working_lines += f'{line}\n' @@ -818,7 +817,7 @@ def cached_commits_store(list_of_commits: list[CommitInfo]) -> None: # Cache information for commits that have been sorted. # Commits that still need sorting are not cached. # This is done so if a user is repeatably running this script so they can sort - # the "needs sorting" section, they don't have to wait for information requests to Gitea + # the "needs sorting" section, they don't have to wait for information requests to GITEA # on commits that are already sorted (and they're not interested in). data_to_cache = {} for commit in list_of_commits: