File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ def read_clf_from_file(path: str | Path) -> ProcessList:
131131 If the given file does not contain a valid *CLF* file.
132132 """
133133
134- xml = lxml .etree .parse (str (path )) # noqa: S320
134+ xml = lxml .etree .parse (str (path ))
135135 xml_process_list = xml .getroot ()
136136
137137 process_list = ProcessList .from_xml (xml_process_list )
@@ -161,7 +161,7 @@ def read_clf(text: str | bytes) -> ProcessList | None:
161161 If the given string does not contain a valid *CLF* file.
162162 """
163163
164- xml = lxml .etree .fromstring (text ) # noqa: S320
164+ xml = lxml .etree .fromstring (text )
165165
166166 return ProcessList .from_xml (xml )
167167
Original file line number Diff line number Diff line change @@ -130,9 +130,9 @@ def inner(text: str) -> str:
130130 """Format and pads inner text for the message box."""
131131
132132 return (
133- f'* { " " * padding } '
134- f' { text } { " " * (width - len (text ) - padding * 2 - 2 )} '
135- f' { " " * padding } *'
133+ f"* { ' ' * padding } "
134+ f" { text } { ' ' * (width - len (text ) - padding * 2 - 2 )} "
135+ f" { ' ' * padding } *"
136136 )
137137
138138 print_callable ("=" * width )
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ def extract_todo_items(root_directory: str) -> dict:
8181
8282 if in_todo and line .startswith ("#" ):
8383 todo_item .append (line .replace ("#" , "" ).strip ())
84- elif len ( todo_item ) :
84+ elif todo_item :
8585 key = filename .replace ("../" , "" )
8686 if not todo_items .get (key ):
8787 todo_items [key ] = []
You can’t perform that action at this time.
0 commit comments