File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ def read_clf(path: str | Path) -> ProcessList | None:
124
124
If the given file does not contain a valid *CLF* file.
125
125
"""
126
126
127
- xml = lxml .etree .parse (str (path )) # noqa: S320
127
+ xml = lxml .etree .parse (str (path ))
128
128
xml_process_list = xml .getroot ()
129
129
130
130
return ProcessList .from_xml (xml_process_list )
@@ -150,6 +150,6 @@ def parse_clf(text: str | bytes) -> ProcessList | None:
150
150
If the given string does not contain a valid *CLF* file.
151
151
"""
152
152
153
- xml = lxml .etree .fromstring (text ) # noqa: S320
153
+ xml = lxml .etree .fromstring (text )
154
154
155
155
return ProcessList .from_xml (xml )
Original file line number Diff line number Diff line change @@ -130,9 +130,9 @@ def inner(text: str) -> str:
130
130
"""Format and pads inner text for the message box."""
131
131
132
132
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 } *"
136
136
)
137
137
138
138
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:
81
81
82
82
if in_todo and line .startswith ("#" ):
83
83
todo_item .append (line .replace ("#" , "" ).strip ())
84
- elif len ( todo_item ) :
84
+ elif todo_item :
85
85
key = filename .replace ("../" , "" )
86
86
if not todo_items .get (key ):
87
87
todo_items [key ] = []
You can’t perform that action at this time.
0 commit comments