Skip to content

Commit

Permalink
Fix typos (#429)
Browse files Browse the repository at this point in the history
Found via `codespell . -L bu,astroid,befores`
  • Loading branch information
kianmeng authored Sep 5, 2024
1 parent a949df0 commit eca34b9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/pathpicker/line_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def output(self, printer: ColorPrinter) -> None:
y_pos = min_y + self.index + self.controller.get_scroll_offset()

if y_pos < min_y or y_pos >= max_y:
# wont be displayed!
# won't be displayed!
return

self.formatted_line.print_text(y_pos, min_x, printer, max_len)
Expand Down Expand Up @@ -287,7 +287,7 @@ def output(self, printer: ColorPrinter) -> None:
y_pos = min_y + self.index + self.controller.get_scroll_offset()

if y_pos < min_y or y_pos >= max_y:
# wont be displayed!
# won't be displayed!
return

# we dont care about the after text, but we should be able to see
Expand Down
6 changes: 3 additions & 3 deletions src/pathpicker/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
# capture some pre-dir stuff like / and ./
r"(?:"
r"\.?/"
r")?" # thats optional
r")?" # that's optional
# now we look at directories. The 'character class ' allowed before the '/'
# is either a real character or a character and a space. This allows
# multiple spaces in a directory as long as each space is followed by
Expand Down Expand Up @@ -102,7 +102,7 @@
# capture some pre-dir stuff like / and ./
r"(?:"
r"\.?/"
r")?" # thats optional
r")?" # that's optional
# now we look at directories. The 'character class ' allowed before the '/'
# is either a real character or a character and a space. This allows
# multiple spaces in a directory as long as each space is followed by
Expand Down Expand Up @@ -358,7 +358,7 @@ def prepend_dir(file: str, with_file_inspection: bool = False) -> str:

if file[0:4] == ".../":
# these are the gross git abbreviated paths, so
# return early since we cant do anything here
# return early since we can't do anything here
return file

if file[0:2] == "~/":
Expand Down
2 changes: 1 addition & 1 deletion src/tests/inputs/gitLongDiff.txt
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ index 68b83cb..d72fa63 100644
- record mode. Possibly will be expanded in the future."""
+ """A class that just represents the total set of flags
+ available to FPP. Note that some of these are actually
+ processsed by the fpp batch file, and not by python.
+ processed by the fpp batch file, and not by python.
+ However, they are documented here because argsparse is
+ clean and easy to use for that purpose.
+
Expand Down
2 changes: 1 addition & 1 deletion src/tests/inputs/gitLongDiffColor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
- record mode. Possibly will be expanded in the future."""
+ """A class that just represents the total set of flags
+ available to FPP. Note that some of these are actually
+ processsed by the fpp batch file, and not by python.
+ processed by the fpp batch file, and not by python.
+ However, they are documented here because argsparse is
+ clean and easy to use for that purpose.
+
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class ParsingTestCase(NamedTuple):
working_dir="inputs",
),
ParsingTestCase(
"otehr thing ./foo/file-from-yocto_3.1%.bbappend",
"other thing ./foo/file-from-yocto_3.1%.bbappend",
True,
"file-from-yocto_3.1%.bbappend",
validate_file_exists=True,
Expand Down

0 comments on commit eca34b9

Please sign in to comment.