@@ -51,6 +51,7 @@ def stripAnsi(string: str) -> str:
5151 Returns:
5252 -------
5353 str: plaintext, utf-8 string (safe for writing to files)
54+
5455 """
5556 return re .compile (r"\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])" ).sub ("" , string )
5657
@@ -66,6 +67,7 @@ def ansi(myLice: License, packages: list[PackageInfo]) -> str:
6667 Returns:
6768 -------
6869 str: string to send to specified output in ansi format
70+
6971 """
7072 string = StringIO ()
7173
@@ -113,6 +115,7 @@ def plainText(myLice: License, packages: list[PackageInfo]) -> str:
113115 Returns:
114116 -------
115117 str: string to send to specified output in plain text format
118+
116119 """
117120 return stripAnsi (ansi (myLice , packages ))
118121
@@ -128,6 +131,7 @@ def markdown(myLice: License, packages: list[PackageInfo]) -> str:
128131 Returns:
129132 -------
130133 str: string to send to specified output in markdown format
134+
131135 """
132136 info = "\n " .join (f"- **{ k } **: { v } " for k , v in INFO .items ())
133137 strBuf = [f"## Info\n \n { info } \n \n ## Project License\n \n { printLicense (myLice )} \n " ]
@@ -169,6 +173,7 @@ def raw(myLice: License, packages: list[PackageInfo]) -> str:
169173 Returns:
170174 -------
171175 str: string to send to specified output in raw json format
176+
172177 """
173178 return json .dumps (
174179 {
@@ -191,6 +196,7 @@ def rawCsv(myLice: License, packages: list[PackageInfo]) -> str:
191196 Returns:
192197 -------
193198 str: string to send to specified output in raw csv format
199+
194200 """
195201 _ = myLice
196202 string = StringIO ()
0 commit comments