bin: Fix typos
authorHarri Nieminen <moiman@posteo.net>
Wed, 29 Mar 2023 14:19:04 +0000 (17:19 +0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 30 Mar 2023 21:37:00 +0000 (21:37 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22189>

bin/ci/gitlab_gql.py
bin/gen_calendar_entries.py
bin/gen_calendar_entries_test.py
bin/gen_release_notes.py
bin/gen_release_notes_test.py
bin/gen_vs_module_defs.py
bin/perf-annotate-jit.py
bin/pick/core_test.py
bin/symbols-check.py

index bd58f32..4a4c6ca 100755 (executable)
@@ -211,7 +211,7 @@ def recurse_among_variables_space(var_graph) -> bool:
     return updated
 
 
-def get_job_final_definiton(job_name, merged_yaml, project_path, sha):
+def get_job_final_definition(job_name, merged_yaml, project_path, sha):
     job = merged_yaml[job_name]
     variables = get_variables(job, merged_yaml, project_path, sha)
 
@@ -294,7 +294,7 @@ def main():
         merged_yaml = fetch_merged_yaml(
             gl_gql, {"projectPath": args.project_path, "sha": args.sha}
         )
-        get_job_final_definiton(
+        get_job_final_definition(
             args.print_job_manifest, merged_yaml, args.project_path, args.sha
         )
 
index 96772dd..792a13d 100755 (executable)
@@ -78,9 +78,9 @@ def commit(message: str) -> None:
 
 
 def _calculate_release_start(major: str, minor: str) -> datetime.date:
-    """Calclulate the start of the release for release candidates.
+    """Calculate the start of the release for release candidates.
 
-    This is quarterly, on the second wednesday, in Januray, April, July, and Octobor.
+    This is quarterly, on the second wednesday, in January, April, July, and October.
     """
     quarter = datetime.date.fromisoformat(f'20{major}-0{[1, 4, 7, 10][int(minor)]}-01')
 
index 59c3645..f0eb9a3 100644 (file)
@@ -52,7 +52,7 @@ def mock_csv(data: typing.List[gen_calendar_entries.CalendarRowType]) -> typing.
 
 @pytest.fixture(autouse=True, scope='module')
 def disable_git_commits() -> None:
-    """Mock out the commit function so no git commits are made durring testing."""
+    """Mock out the commit function so no git commits are made during testing."""
     with mock.patch('bin.gen_calendar_entries.commit', mock.Mock()):
         yield
 
index dd81fc1..ababfa2 100755 (executable)
@@ -279,7 +279,7 @@ def calculate_next_version(version: str, is_point: bool) -> str:
 def calculate_previous_version(version: str, is_point: bool) -> str:
     """Calculate the previous version to compare to.
 
-    In the case of -rc to final that verison is the previous .0 release,
+    In the case of -rc to final that version is the previous .0 release,
     (19.3.0 in the case of 20.0.0, for example). for point releases that is
     the last point release. This value will be the same as the input value
     for a point release, but different for a major release.
index bccbaf9..8d8e34c 100644 (file)
@@ -76,7 +76,7 @@ async def test_gather_commits():
     'content, bugs',
     [
         # It is important to have the title on a new line, as
-        # textwrap.dedent wont work otherwise.
+        # textwrap.dedent won't work otherwise.
 
         # Test the `Closes: #N` syntax
         (
@@ -113,7 +113,7 @@ async def test_gather_commits():
             '''\
             A commit for for something else completely
 
-            Closes: https://github.com/Organiztion/project/1234
+            Closes: https://github.com/Organization/project/1234
             ''',
             [],
         ),
index b2cf212..ed73815 100644 (file)
@@ -89,8 +89,8 @@ python ./bin/gen_vs_module_defs.py --in_file src/gallium/targets/lavapipe/vulkan
 '''
 if __name__ == "__main__":
     parser = argparse.ArgumentParser(description=gen_help)
-    parser.add_argument('--in_file', help='input template moudle definition file')
-    parser.add_argument('--out_file', help='output moudle definition file')
+    parser.add_argument('--in_file', help='input template module definition file')
+    parser.add_argument('--out_file', help='output module definition file')
     parser.add_argument('--compiler_abi', help='compiler abi')
     parser.add_argument('--compiler_id', help='compiler id')
     parser.add_argument('--cpu_family', help='cpu family')
index 6eb8f52..680a775 100755 (executable)
@@ -25,7 +25,7 @@
 """Perf annotate for JIT code.
 
 Linux `perf annotate` does not work with JIT code.  This script takes the data
-produced by `perf script` command, plus the diassemblies outputed by gallivm
+produced by `perf script` command, plus the diassemblies outputted by gallivm
 into /tmp/perf-XXXXX.map.asm and produces output similar to `perf annotate`.
 
 See docs/llvmpipe.rst for usage instructions.
index a7d14d0..e178f64 100644 (file)
@@ -242,7 +242,7 @@ class TestResolveNomination:
     @attr.s(slots=True)
     class FakeSubprocess:
 
-        """A fake asyncio.subprocess like classe for use with mock."""
+        """A fake asyncio.subprocess like class for use with mock."""
 
         out: typing.Optional[bytes] = attr.ib(None)
         returncode: int = attr.ib(0)
index 6049cbe..7daf603 100644 (file)
@@ -189,7 +189,7 @@ def main():
             continue
         if symbol[:2] == '_Z':
             # As ajax found out, the compiler intentionally exports symbols
-            # that we explicitely asked it not to export, and we can't do
+            # that we explicitly asked it not to export, and we can't do
             # anything about it:
             # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36022#c4
             continue