Skip to content

Commit

Permalink
Fix rest of codespell 2.2.1 errors (TriBITSPub#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlettroscoe committed Mar 30, 2023
1 parent d898491 commit a9fe9b7
Show file tree
Hide file tree
Showing 24 changed files with 48 additions and 48 deletions.
4 changes: 2 additions & 2 deletions .codespellrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ check-filenames =
check-hidden =
# Disable warnings about binary files
quiet-level = 2
skip = */.git,*/common_tools/cloc,*/TriBITSDoc
ignore-words-list = thur,inout,te,nd,lod,aci,nin,nnumber,wile,reall,somwhere
skip = */.git,*/common_tools/cloc,*/TriBITSDoc,*/tribits/doc/guides/rst2latex.tex
ignore-words-list = thur,inout,te,nd,lod,aci,nin,nnumber,wile,reall,bu,somewhere
2 changes: 1 addition & 1 deletion README.DIRECTORY_CONTENTS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ functionality and assimilate into the TriBITS framework. It also contains
basic documentation and examples. Files and directories from here are what
get installed on the system or are snapshotted into
``<projectDir>/cmake/tribits/``. Each TriBITS Project decides what parts of
it wants to install or shapshot using the script
it wants to install or snapshot using the script
``tribits/snapshot_tribits.py`` (which takes arguments for what dirs to
snapshot, see below). This directory contains no tests at all. All of the
tests for TriBITS are in the ``test/`` directory (see below). The breakdown of
Expand Down
10 changes: 5 additions & 5 deletions test/ci_support/CheckinTest_UnitTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ def checkin_test_run_case(testObject, testName, optionsStr, cmndInterceptsStr, \
"--with-cmake=\""+g_withCmake+"\"",
"--project-name=Trilinos",
"--src-dir="+mockProjectBaseDir,
"--send-email-to=bogous@somwhere.com",
"--send-email-to=bogous@somewhere.com",
"--project-configuration=%s" % os.path.join(g_testBaseDir,
'CheckinTest_UnitTests_Config.py'),
optionsStr,
Expand Down Expand Up @@ -1658,7 +1658,7 @@ def checkin_test_run_case(testObject, testName, optionsStr, cmndInterceptsStr, \

if inPathGit:
baseCmndInterceptsStr += \
"IT: git config --get user.email; 0; bogous@somwhere.com\n" \
"IT: git config --get user.email; 0; bogous@somewhere.com\n" \
+"IT: which git; 0; /some/path/git\n"

fullCmndInterceptsStr = baseCmndInterceptsStr + cmndInterceptsStr
Expand Down Expand Up @@ -2237,7 +2237,7 @@ def test_do_all_no_git_installed(self):
+" --do-all --push" \
,
\
"IT: git config --get user.email; 0; bogous@somwhere.com\n" \
"IT: git config --get user.email; 0; bogous@somewhere.com\n" \
+"IT: which git; 1; '/usr/bin/which: no git in (path1:path2:path3)'\n" \
,
\
Expand Down Expand Up @@ -5634,9 +5634,9 @@ def test_send_email_only_on_failure_do_all_mpi_debug_build_configure_fail(self):
+g_expectedRegexBuildPasses \
+g_expectedRegexTestPasses \
+g_expectedCommonOptionsSummary \
+"Running: mailx -s .FAILED: Trilinos/MPI_DEBUG: configure failed. bogous@somwhere.com\n" \
+"Running: mailx -s .FAILED: Trilinos/MPI_DEBUG: configure failed. bogous@somewhere.com\n" \
+"SERIAL_RELEASE: Skipping sending build/test case email because it passed and --send-email-only-on-failure was set!\n" \
+"Running: mailx -s .FAILED CONFIGURE/BUILD/TEST: Trilinos: .* bogous@somwhere.com\n" \
+"Running: mailx -s .FAILED CONFIGURE/BUILD/TEST: Trilinos: .* bogous@somewhere.com\n" \
)


Expand Down
2 changes: 1 addition & 1 deletion test/core/CompilerOptions_UnitTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ endfunction()
function(unitest_gcc_with_debug_symboles_options)

message("\n***")
message("*** Testing GCC base compiler options with debut symboles")
message("*** Testing GCC base compiler options with debut symbols")
message("***\n")

tribits_set_all_compiler_id(GNU)
Expand Down
2 changes: 1 addition & 1 deletion test/core/TestingFunctionMacro_UnitTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3676,7 +3676,7 @@ function(unittest_tribits_add_advanced_test_properties)
set(${PROJECT_NAME}_TRACE_ADD_TEST ON)
set(MESSAGE_WRAPPER_UNIT_TEST_MODE TRUE)

message("Test setting default properites")
message("Test setting default properties")
tribits_add_advanced_test_unittest_reset()
tribits_add_advanced_test( TAAT_basic_cmnd_1_args_0
TEST_0 CMND ${CMNDN}
Expand Down
4 changes: 2 additions & 2 deletions test/ctest_driver/TribitsExampleMetaProject/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ tribits_add_advanced_test( CTestDriver_TribitsExMetaProj_clone_custom_branch_rem
if (NOT GIT_VERSION_STRING VERSION_LESS "2.10.0")
set(GIT_SUPPORTS_VERSION_DATE TRUE)
else()
set(GIT_SUPPORTS_VERSION_DATE FASLE)
set(GIT_SUPPORTS_VERSION_DATE FALSE)
endif()

set(FULL_TEST_BINARY_DIR
Expand Down Expand Up @@ -710,7 +710,7 @@ tribits_add_advanced_test( CTestDriver_TribitsExMetaProj_version_date
BUILD/install/include/TribitsExMetaProj_version_date.h

TEST_8
MESSAGE "Check just the version date macro in intalled TribitsExampleProject_version_date.h"
MESSAGE "Check just the version date macro in installed TribitsExampleProject_version_date.h"
CMND cat
ARGS BUILD/install/include/TribitsExampleProject_version_date.h
PASS_REGULAR_EXPRESSION
Expand Down
10 changes: 5 additions & 5 deletions test/python_utils/gitdist_UnitTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def create_table_data(self):
"2019-10-17 16:32:15"]},
{"label": "Author", "align": "L",
"fields": ["[email protected]", "[email protected]",
"someone@somwhere.com"]},
"someone@somewhere.com"]},
{"label": "Summary", "align": "L",
"fields": ["Merge Pull Request #1234 from user/repo/branch",
"Fixed a Bug", "Did Some Work"]}
Expand All @@ -431,7 +431,7 @@ def test_full_markdown_table(self):
"|:-------------- |:-------:|:------------------- |:---------------------- |:---------------------------------------------- |\n" \
"| MockProjectDir | e2dc488 | 2019-10-23 10:16:07 | [email protected] | Merge Pull Request #1234 from user/repo/branch |\n" \
"| ExtraRepo1 | f671414 | 2019-10-22 11:18:47 | [email protected] | Fixed a Bug |\n" \
"| ExtraRepo2 | 50bbf3e | 2019-10-17 16:32:15 | someone@somwhere.com | Did Some Work |"
"| ExtraRepo2 | 50bbf3e | 2019-10-17 16:32:15 | someone@somewhere.com | Did Some Work |"
self.assertEqual(table, table_expected)


Expand Down Expand Up @@ -841,7 +841,7 @@ def writeGitMockProgram_dist_repo_versions_table():
"MOCK_PROGRAM_OUTPUT: 2019-10-17 16:32:15\n" \
"MOCK_PROGRAM_INPUT: log -1 --pretty=format:%ae\n" \
"MOCK_PROGRAM_RETURN: 0\n" \
"MOCK_PROGRAM_OUTPUT: someone@somwhere.com\n" \
"MOCK_PROGRAM_OUTPUT: someone@somewhere.com\n" \
"MOCK_PROGRAM_INPUT: log -1 --pretty=format:%s\n" \
"MOCK_PROGRAM_RETURN: 0\n" \
"MOCK_PROGRAM_OUTPUT: Did Some Work\n" \
Expand Down Expand Up @@ -904,7 +904,7 @@ def writeGitMockProgram_dist_repo_versions_table_1_change_base():
"MOCK_PROGRAM_OUTPUT: 2019-10-17 16:32:15\n" \
"MOCK_PROGRAM_INPUT: log -1 --pretty=format:%ae\n" \
"MOCK_PROGRAM_RETURN: 0\n" \
"MOCK_PROGRAM_OUTPUT: someone@somwhere.com\n" \
"MOCK_PROGRAM_OUTPUT: someone@somewhere.com\n" \
"MOCK_PROGRAM_INPUT: log -1 --pretty=format:%s\n" \
"MOCK_PROGRAM_RETURN: 0\n" \
"MOCK_PROGRAM_OUTPUT: Did Some Work\n" \
Expand Down Expand Up @@ -1730,7 +1730,7 @@ def test_dist_repo_versions_table(self):
"|:-------------- |:-------:|:------------------- |:---------------------- |:---------------------------------------------- |\n" \
"| MockProjectDir | e2dc488 | 2019-10-23 10:16:07 | [email protected] | Merge Pull Request #1234 from user/repo/branch |\n" \
"| ExtraRepo1 | f671414 | 2019-10-22 11:18:47 | [email protected] | Fixed a Bug |\n" \
"| ExtraRepo2 | 50bbf3e | 2019-10-17 16:32:15 | someone@somwhere.com | Did Some Work |\n"
"| ExtraRepo2 | 50bbf3e | 2019-10-17 16:32:15 | someone@somewhere.com | Did Some Work |\n"
self.assertEqual(s(cmndOut), s(cmndOut_expected))

finally:
Expand Down
6 changes: 3 additions & 3 deletions tribits/ci_support/CDashQueryAnalyzeReport.py
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,7 @@ def __call__(self, dict_in):
#
# limitRowsToDisplay [in]: The max number of rows to display. The default is
# None which will result in no limit to the number of rows displayed. The top
# limitRowsToDisplay items will be dispalyed after the list is sorted.
# limitRowsToDisplay items will be displayed after the list is sorted.
#
def sortAndLimitListOfDicts(listOfDicts, sortKeyList = None,
limitRowsToDisplay = None\
Expand Down Expand Up @@ -2405,7 +2405,7 @@ def getCDashDataSummaryHtmlTableTitleStr(dataTitle, dataCountAcronym, numItems,
#
# limitRowsToDisplay [in]: The max number of rows to display. The default is
# None which will result in no limit to the number of rows displayed. The top
# limitRowsToDisplay items will be dispalyed after the list is sorted.
# limitRowsToDisplay items will be displayed after the list is sorted.
#
# htmlStyle [in]: The HTML style data (between <style></style>. If None is
# passed in then a default style is provided internally (see
Expand Down Expand Up @@ -2692,7 +2692,7 @@ def __init__(self, cdashReportData,
#
# verbose [in] If set to True then some more verbose info is printed to
# STDOUT. If False, then nothing is printed to STDOUT (which is useful
# for unit testsing). The default is True.
# for unit testing). The default is True.
#
# On output, self.cdashReportData data will be updated with the summary and
# table of this given build-set. In particular, the following
Expand Down
2 changes: 1 addition & 1 deletion tribits/ci_support/CheckinTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2456,7 +2456,7 @@ def checkinTest(tribitsDir, inOptions, configuration={}):
abortGracefullyDueToNoChangesToPush = True
runBuildCases = False
elif pullPassed:
print("\nThe pull passsed, running the build/test cases ...\n")
print("\nThe pull passed, running the build/test cases ...\n")
runBuildCases = True
else:
print("\nNot running any build/test cases because the pull failed!\n")
Expand Down
2 changes: 1 addition & 1 deletion tribits/ci_support/cdash_analyze_and_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def getTestHistory(self, testLOD):
CDQAR.MatchDictKeysValuesFunctor(nonpassingTestsSLOD)

#
# D.3) Partition the varous list of tests into different sets that will
# D.3) Partition the various list of tests into different sets that will
# be displayed in different tables.
#

Expand Down
2 changes: 1 addition & 1 deletion tribits/common_tpls/utils/ParseLibraryList.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function(parse_library_list)
endforeach()


# Now set output vairables
# Now set output variables
set(${PARSE_ARGS_DEBUG} "${_debug_libs}" PARENT_SCOPE)
set(${PARSE_ARGS_OPT} "${_opt_libs}" PARENT_SCOPE)
set(${PARSE_ARGS_GENERAL} "${_gen_libs}" PARENT_SCOPE)
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/package_arch/TribitsAddTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ function(tribits_add_test EXE_NAME)
elseif (PARSE_POSTFIX_AND_ARGS_0)
# We will use this list instead
else()
# Niether 'ARGS' nor 'POSTFIX_AND_ARGS' was selected so just assume one
# Neither 'ARGS' nor 'POSTFIX_AND_ARGS' was selected so just assume one
# empty arg
set(PARSE_ARGS " ")
set(NUM_PARSE_ARGS 1)
Expand Down
6 changes: 3 additions & 3 deletions tribits/core/package_arch/TribitsAddTestHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ endfunction()


#
# Set the timeout for a test already aded
# Set the timeout for a test already added
#
function(tribits_private_add_test_set_timeout TEST_NAME_IN TIMEOUT_USED_OUT)

Expand All @@ -753,7 +753,7 @@ endfunction()


#
# Set the environment for a test already aded
# Set the environment for a test already added
#
function(tribits_private_add_test_set_environment TEST_NAME_IN)

Expand All @@ -768,7 +768,7 @@ endfunction()


#
# Set the environment for a test already aded
# Set the environment for a test already added
#
function(tribits_private_add_test_set_processors TEST_NAME_IN
NUM_TOTAL_CORES_USED_IN PROCESSORS_OUT
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/package_arch/TribitsGlobalMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ macro(tribits_define_global_options_and_define_extra_repos)
message(FATAL_ERROR "Error, the value of"
" ${PROJECT_NAME}_CHECK_FOR_UNPARSED_ARGUMENTS ="
" '${${PROJECT_NAME}_CHECK_FOR_UNPARSED_ARGUMENTS}' is invalid!"
" Valid valules include 'WANRING', 'SEND_ERROR', and 'FATAL_ERROR'"
" Valid values include 'WARNING', 'SEND_ERROR', and 'FATAL_ERROR'"
)
endif()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function(tribits_tpl_allow_pre_find_package TPL_NAME ALLOW_PACKAGE_PREFIND_OUT
OR (NOT "${${TPL_NAME}_LIBRARY_NAMES}" STREQUAL "")
OR (NOT "${${TPL_NAME}_LIBRARY_DIRS}" STREQUAL "")
)
# One ore more of the ${TPL_NAME}_XXX variables are set
# One or more of the ${TPL_NAME}_XXX variables are set
if (${TPL_NAME}_FORCE_PRE_FIND_PACKAGE)
# Even with one or more of the ${TPL_NAME}_XXX vars set, we still want
# to do the find_package(${TPL_NAME} ...) search and ignore this
Expand Down
14 changes: 7 additions & 7 deletions tribits/ctest_driver/TribitsCTestDriverCoreHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ endmacro()


# Helper macros to pass through common CMake configure arguments used by both
# package-by-pacakge approach and all-at-once approach
# package-by-package approach and all-at-once approach
#
macro(tribits_fwd_cmake_config_args_0)
set( CONFIGURE_OPTIONS
Expand Down Expand Up @@ -1643,27 +1643,27 @@ macro(tribits_ctest_all_at_once)

if (AAO_CONFIGURE_FAILED OR AAO_BUILD_FAILED OR AAO_INSTALL_FAILED)
if (${PROJECT_NAME}_ENABLE_ALL_PACKAGES)
# Special value "ALL_PACAKGES" so that it will trigger enabling all
# Special value "ALL_PACKAGES" so that it will trigger enabling all
# packages on the next CI iteration!
set(${PROJECT_NAME}_FAILED_PACKAGES ALL_PACKAGES)
else()
# Specific packages were selected to be tested so fail all of them!
set(${PROJECT_NAME}_FAILED_PACKAGES ${${PROJECT_NAME}_PACKAGES_TO_DIRECTLY_TEST})
endif()
# NOTE: With the all-at-once appraoch, there is no way to determine which
# NOTE: With the all-at-once approach, there is no way to determine which
# packages have build or install failures given the current ctest_build()
# command. And since some build targets don't get used in tests, we can't
# look at what packages have test failures in order to know that a build
# failure will cause a test failure. And in the case of install failures,
# those will never cause test failures. Therefore, if there are any build
# or install failures, we just have to assume that any tested package
# could have failed. Hense, we set the above just like for a (global)
# could have failed. Hence, we set the above just like for a (global)
# configure failures. Perhaps we could read the generated *.xml files to
# figure that out but that is not worth the work righ now. The only bad
# figure that out but that is not worth the work right now. The only bad
# consequence of this is that a CI build would end up building and testing
# every package even if only one dowstream package had a build failure,
# every package even if only one downstream package had a build failure,
# for example. That is just one of the downsides of the all-at-once
# appraoch vs. the package-by-package appraoch.
# approach vs. the package-by-package approach.
elseif (FAILED_TEST_LOG_FILE)
tribits_get_failed_packages_from_failed_tests("${FAILED_TEST_LOG_FILE}"
${PROJECT_NAME}_FAILED_PACKAGES )
Expand Down
2 changes: 1 addition & 1 deletion tribits/devtools_install/install-mpich.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def doUntar(self):
echoChDir(self.mpichBaseDir)
echoRunSysCmnd("tar -xzf "+self.mpichTarball)
# NOTE: I found that you have to untar the tarball and can't store the
# open source in the git repo. Otherwise the timestaps are messed up and
# open source in the git repo. Otherwise the timestamps are messed up and
# it 'make' tries to recreate some generated files.

def doConfigure(self):
Expand Down
2 changes: 1 addition & 1 deletion tribits/devtools_install/install_devtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<url_base><tool_name>-<tool_version>-base
This can also accomidate gitolite repos and other directory structures,
This can also accommodate gitolite repos and other directory structures,
for example, with:
git@<host-name>:prerequisites/
Expand Down
2 changes: 1 addition & 1 deletion tribits/doc/guides/TribitsCoreDetailedReference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ These options are described below.
processed in CTest -S driver scripts using ``tribits_ctest_driver()``.)

In general, a project should change the default to ``TRUE`` when using a
newer CDash installation with CDash versions 3.0+ that can accomidate the
newer CDash installation with CDash versions 3.0+ that can accommodate the
results coming from ctest -S and display them package-by-package very
nicely. Otherwise, most projects are better off with package-by-package
mode since it results in nicer display on CDash for older CDash versions.
Expand Down
2 changes: 1 addition & 1 deletion tribits/doc/guides/rst2latex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
% Generated files should process well standalone too, LaTeX might give a
% message about a missing file.

% donot indent first line of paragraph.
% Do not indent first line of paragraph.
\setlength{\parindent}{0pt}
\setlength{\parskip}{5pt plus 2pt minus 1pt}

Expand Down
10 changes: 5 additions & 5 deletions tribits/doc/tutorial/src/TribitsTutorial_ConvertAProject.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ have the following files:
this projec t and where to find them
#. *TPLsList.cmke* - Tells tribits which TPLs that packages my depend
on and how to find them
#. *ProjectName.cmake* - defines the projet name and possibly some
#. *ProjectName.cmake* - defines the project name and possibly some
other project level settings
#. *Version.cmake* - set the version of the software being built
#. *Package Directories* - A directory for each package that contains
everything nesseesary for a Tribits package described above. Often
everything necessary for a Tribits package described above. Often
Projects will have a packages directory that contains all of the
individual package directories in the project

Expand Down Expand Up @@ -393,14 +393,14 @@ in this project level CMakeLists file:
for this project o build. If you try and run with a lower version
then there will be an error. You cannot specify a version lower than
3.23.0
#. Include ProjectNmae.cmake and call project() with argument PROJECT_NAME
#. Include ProjectName.cmake and call project() with argument PROJECT_NAME
#. specify the directory to tribits and include TriBITS.cmake
#. specify which packages are turned on/off by default
#. call tribits_project()

Here is an examlpe of a project CMakeLists::
Here is an example of a project CMakeLists::

# Deefine your minimum CMake version
# Define your minimum CMake version
cmake_minimum_required(VERSION 3.23.0 FATAL_ERROR)

# Define your project name and set up major project options
Expand Down
2 changes: 1 addition & 1 deletion tribits/python_utils/SnapshotDir.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def snapshotDirMainDriver(cmndLineArgs, defaultOptionsIn = None, stdout = None):
return # All done!

#
# C) Exectute the
# C) Execute the
#

snapshotDir(options)
Expand Down
2 changes: 1 addition & 1 deletion tribits/python_utils/extract_rst_cmake_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
error will occur.
See the unit tests in extract_rst_cmake_doc_UnitTest.py for examples of
behavior w.r.t. different errors and fomatting mistakes.
behavior w.r.t. different errors and formatting mistakes.
"""

#
Expand Down
2 changes: 1 addition & 1 deletion tribits/python_utils/gitdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def getHelpTopicsStr():
|:-------------- |:-------:|:------------------- |:---------------------- |:---------------------------------------------- |
| MockProjectDir | e2dc488 | 2019-10-23 10:16:07 | [email protected] | Merge Pull Request #1234 from user/repo/branch |
| ExtraRepo1 | f671414 | 2019-10-22 11:18:47 | [email protected] | Fixed a Bug |
| ExtraRepo2 | 50bbf3e | 2019-10-17 16:32:15 | someone@somwhere.com | Did Some Work |
| ExtraRepo2 | 50bbf3e | 2019-10-17 16:32:15 | someone@somewhere.com | Did Some Work |
If the option --dist-short is also passed in, the output will be limited to:
Expand Down

0 comments on commit a9fe9b7

Please sign in to comment.