mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 20:55:34 +02:00
build(deps): bump black from 22.3.0 to 23.3.0, reformat render.py for latest black version (#10284)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
dac1e6f084
commit
d06d41d23a
2 changed files with 1 additions and 4 deletions
|
@ -1,3 +1,3 @@
|
||||||
black==22.3.0
|
black==23.3.0
|
||||||
flake8==6.0.0
|
flake8==6.0.0
|
||||||
requests==2.31.0
|
requests==2.31.0
|
||||||
|
|
|
@ -18,7 +18,6 @@ from weasyprint import HTML
|
||||||
|
|
||||||
|
|
||||||
def main(loc, colorscheme):
|
def main(loc, colorscheme):
|
||||||
|
|
||||||
# Checking correctness of path
|
# Checking correctness of path
|
||||||
if not os.path.isdir(loc):
|
if not os.path.isdir(loc):
|
||||||
print("Invalid directory. Please try again!", file=sys.stderr)
|
print("Invalid directory. Please try again!", file=sys.stderr)
|
||||||
|
@ -42,7 +41,6 @@ def main(loc, colorscheme):
|
||||||
|
|
||||||
# Writing names of all directories inside 'pages' to a list
|
# Writing names of all directories inside 'pages' to a list
|
||||||
for operating_sys in sorted(os.listdir(loc)):
|
for operating_sys in sorted(os.listdir(loc)):
|
||||||
|
|
||||||
# Required string to create directory title pages
|
# Required string to create directory title pages
|
||||||
html += (
|
html += (
|
||||||
"<h1 class=title-dir>"
|
"<h1 class=title-dir>"
|
||||||
|
@ -78,7 +76,6 @@ def main(loc, colorscheme):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
# Parsing the arguments
|
# Parsing the arguments
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
prog="tldr-pages-to-pdf",
|
prog="tldr-pages-to-pdf",
|
||||||
|
|
Loading…
Add table
Reference in a new issue