From fd767a45170b1fcd8bfe14b993f7aa92dc6d64a5 Mon Sep 17 00:00:00 2001 From: Harri Nieminen Date: Wed, 29 Mar 2023 17:19:04 +0300 Subject: [PATCH] bin: Fix typos Part-of: --- bin/ci/gitlab_gql.py | 4 ++-- bin/gen_calendar_entries.py | 4 ++-- bin/gen_calendar_entries_test.py | 2 +- bin/gen_release_notes.py | 2 +- bin/gen_release_notes_test.py | 4 ++-- bin/gen_vs_module_defs.py | 4 ++-- bin/perf-annotate-jit.py | 2 +- bin/pick/core_test.py | 2 +- bin/symbols-check.py | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/bin/ci/gitlab_gql.py b/bin/ci/gitlab_gql.py index bd58f320b42..4a4c6ca619f 100755 --- a/bin/ci/gitlab_gql.py +++ b/bin/ci/gitlab_gql.py @@ -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 ) diff --git a/bin/gen_calendar_entries.py b/bin/gen_calendar_entries.py index 96772ddc016..792a13d4de7 100755 --- a/bin/gen_calendar_entries.py +++ b/bin/gen_calendar_entries.py @@ -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') diff --git a/bin/gen_calendar_entries_test.py b/bin/gen_calendar_entries_test.py index 59c3645b39a..f0eb9a38e1a 100644 --- a/bin/gen_calendar_entries_test.py +++ b/bin/gen_calendar_entries_test.py @@ -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 diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py index dd81fc11020..ababfa2b2c6 100755 --- a/bin/gen_release_notes.py +++ b/bin/gen_release_notes.py @@ -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. diff --git a/bin/gen_release_notes_test.py b/bin/gen_release_notes_test.py index bccbaf9fb92..8d8e34c7e2d 100644 --- a/bin/gen_release_notes_test.py +++ b/bin/gen_release_notes_test.py @@ -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 ''', [], ), diff --git a/bin/gen_vs_module_defs.py b/bin/gen_vs_module_defs.py index b2cf2125dbb..ed73815f93b 100644 --- a/bin/gen_vs_module_defs.py +++ b/bin/gen_vs_module_defs.py @@ -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') diff --git a/bin/perf-annotate-jit.py b/bin/perf-annotate-jit.py index 6eb8f528369..680a7756624 100755 --- a/bin/perf-annotate-jit.py +++ b/bin/perf-annotate-jit.py @@ -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. diff --git a/bin/pick/core_test.py b/bin/pick/core_test.py index a7d14d04d24..e178f6483e1 100644 --- a/bin/pick/core_test.py +++ b/bin/pick/core_test.py @@ -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) diff --git a/bin/symbols-check.py b/bin/symbols-check.py index 6049cbe2918..7daf603c5f9 100644 --- a/bin/symbols-check.py +++ b/bin/symbols-check.py @@ -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