Skip to content

Commit 010d298

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4a9b960 commit 010d298

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

colour_clf_io/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def read_clf(path: str | Path) -> ProcessList | None:
124124
If the given file does not contain a valid *CLF* file.
125125
"""
126126

127-
xml = lxml.etree.parse(str(path)) # noqa: S320
127+
xml = lxml.etree.parse(str(path))
128128
xml_process_list = xml.getroot()
129129

130130
return ProcessList.from_xml(xml_process_list)
@@ -150,6 +150,6 @@ def parse_clf(text: str | bytes) -> ProcessList | None:
150150
If the given string does not contain a valid *CLF* file.
151151
"""
152152

153-
xml = lxml.etree.fromstring(text) # noqa: S320
153+
xml = lxml.etree.fromstring(text)
154154

155155
return ProcessList.from_xml(xml)

tasks.py

+3-3
Original file line numberDiff line numberDiff 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)

utilities/export_todo.py

+1-1
Original file line numberDiff line numberDiff 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] = []

0 commit comments

Comments
 (0)