Skip to content

Commit c666a4b

Browse files
authored
Merge pull request #222 from vil02/remove_trailing_spaces_from_ymls
style: remove trailing spaces from `update_directory_md.yml`
2 parents cf7553b + 6477773 commit c666a4b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/update_directory_md.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ jobs:
1313
from typing import Iterator
1414
URL_BASE = "https://github.com/TheAlgorithms/Ruby/blob/master"
1515
g_output = []
16-
16+
1717
def good_filepaths(top_dir: str = ".") -> Iterator[str]:
1818
for dirpath, dirnames, filenames in os.walk(top_dir):
1919
dirnames[:] = [d for d in dirnames if d[0] not in "._"]
2020
for filename in filenames:
2121
if os.path.splitext(filename)[1].lower() == ".rb":
2222
yield os.path.join(dirpath, filename).lstrip("./")
23-
23+
2424
def md_prefix(i):
2525
return f"{i * ' '}*" if i else "\n##"
26-
26+
2727
def print_path(old_path: str, new_path: str) -> str:
2828
global g_output
2929
old_parts = old_path.split(os.sep)
@@ -32,7 +32,7 @@ jobs:
3232
if new_part:
3333
g_output.append(f"{md_prefix(i)} {new_part.replace('_', ' ').title()}")
3434
return new_path
35-
35+
3636
def build_directory_md(top_dir: str = ".") -> str:
3737
global g_output
3838
old_path = ""
@@ -47,7 +47,7 @@ jobs:
4747
return "\n".join(g_output)
4848
with open("DIRECTORY.md", "w") as out_file:
4949
out_file.write(build_directory_md(".") + "\n")
50-
50+
5151
- name: Update DIRECTORY.md
5252
run: |
5353
cat DIRECTORY.md

0 commit comments

Comments
 (0)