Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc666a4b

Browse files
authored
Merge pull requestTheAlgorithms#222 from vil02/remove_trailing_spaces_from_ymls
style: remove trailing spaces from `update_directory_md.yml`
2 parentscf7553b +6477773 commitc666a4b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎.github/workflows/update_directory_md.yml

Lines changed: 5 additions & 5 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp