Skip to content

Commit 50a8bd8

Browse files
committed
run darker
1 parent ac99f87 commit 50a8bd8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tools/fixup_whats_new_pr.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
from pathlib import Path
1515

1616
def main():
17-
folder = Path('docs/source/whatsnew/pr/')
18-
files = list(folder.glob('*.rst'))
17+
folder = Path("docs/source/whatsnew/pr/")
18+
files = list(folder.glob("*.rst"))
1919
print(files)
2020

2121
for filepath in files:
22-
print('Adding pseudo-title to:', filepath.name)
23-
title = filepath.name[:-4].split('/')[-1].replace('-', ' ').capitalize()
22+
print("Adding pseudo-title to:", filepath.name)
23+
title = filepath.name[:-4].split("/")[-1].replace("-", " ").capitalize()
2424

2525
data = filepath.read_text()
2626
try:
@@ -29,9 +29,9 @@ def main():
2929
except IndexError:
3030
pass
3131

32-
with filepath.open('w') as f:
33-
f.write(title+'\n')
34-
f.write('='* len(title)+'\n\n')
32+
with filepath.open("w") as f:
33+
f.write(title + "\n")
34+
f.write("=" * len(title) + "\n\n")
3535
f.write(data)
3636

3737
if __name__ == '__main__':

0 commit comments

Comments
 (0)