Skip to content

Commit d55f8fb

Browse files
authored
style: fix and add spelling check (#615)
* style: fix and add spelling check * Update .pre-commit-config.yaml
1 parent 656dda1 commit d55f8fb

File tree

7 files changed

+20
-6
lines changed

7 files changed

+20
-6
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,17 @@ repos:
3939
hooks:
4040
- id: cmake-format
4141
additional_dependencies: [pyyaml]
42+
43+
- repo: local
44+
hooks:
45+
- id: disallow-caps
46+
name: Disallow improper capitalization
47+
language: pygrep
48+
entry: PyBind|Numpy|Cmake|CCache|PyTest|Github
49+
exclude: .pre-commit-config.yaml
50+
51+
- repo: https://github.com/codespell-project/codespell
52+
rev: v2.1.0
53+
hooks:
54+
- id: codespell
55+
args: ["-L", "atleast,ans,doub,inout"]

docs/mainpage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Introduction {#mainpage}
22

3-
This is the Doxygen API documentation for CLI11 parser. There is a friendly introduction to CLI11 on the [Github page](https://github.com/CLIUtils/CLI11), and [a tutorial series](https://cliutils.github.io/CLI11/book/).
3+
This is the Doxygen API documentation for CLI11 parser. There is a friendly introduction to CLI11 on the [GitHub page](https://github.com/CLIUtils/CLI11), and [a tutorial series](https://cliutils.github.io/CLI11/book/).
44

55
The main classes are:
66

include/CLI/Macros.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// [CLI11:macros_hpp:verbatim]
1010

11-
// The following version macro is very similar to the one in PyBind11
11+
// The following version macro is very similar to the one in pybind11
1212
#if !(defined(_MSC_VER) && __cplusplus == 199711L) && !defined(__INTEL_COMPILER)
1313
#if __cplusplus >= 201402L
1414
#define CLI11_CPP14

include/CLI/TypeTools.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ bool lexical_cast(const std::string &input, T &output) {
10591059
}
10601060
// LCOV_EXCL_START
10611061
// This version of cast is only used for odd cases in an older compilers the fail over
1062-
// from_stream is tested elsewhere an not relevent for coverage here
1062+
// from_stream is tested elsewhere an not relevant for coverage here
10631063
return from_stream(input, output);
10641064
// LCOV_EXCL_STOP
10651065
}

tests/ConfigFileTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ TEST_CASE_METHOD(TApp, "IniRequiredNoDefault", "[config]") {
536536
app.add_option("--two", two);
537537
REQUIRE_THROWS_AS(run(), CLI::FileError);
538538
// test to make sure help still gets called correctly
539-
// Github issue #533 https://github.com/CLIUtils/CLI11/issues/553
539+
// GitHub issue #533 https://github.com/CLIUtils/CLI11/issues/553
540540
args = {"--help"};
541541
REQUIRE_THROWS_AS(run(), CLI::CallForHelp);
542542
}

tests/OptionGroupTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ TEST_CASE_METHOD(ManyGroups, "SameSubcommand", "[optiongroup]") {
593593
// so when the subcommands are disabled they can have the same name
594594
sub1->disabled(false);
595595
sub2->disabled(false);
596-
// if they are reenabled they are not checked for overlap on enabling so they can have the same name
596+
// if they are re-enabled they are not checked for overlap on enabling so they can have the same name
597597
args = {"sub1", "sub1", "sub1"};
598598

599599
run();

tests/StringParseTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ TEST_CASE_METHOD(TApp, "ExistingExeCheckWithLotsOfSpace", "[stringparse]") {
7979
CHECK(std::string("./") + std::string(tmpexe) == app.get_name());
8080
}
8181

82-
// From Github issue #591 https://github.com/CLIUtils/CLI11/issues/591
82+
// From GitHub issue #591 https://github.com/CLIUtils/CLI11/issues/591
8383
TEST_CASE_METHOD(TApp, "ProgNameWithSpace", "[stringparse]") {
8484

8585
app.add_flag("--foo");

0 commit comments

Comments
 (0)