Skip to content

Commit 5d3b2a7

Browse files
committed
Fix various quality issues.
1 parent 3401c4a commit 5d3b2a7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

colour_checker_detection/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
try:
6363
_version = (
6464
subprocess.check_output(
65-
["git", "describe"],
65+
["git", "describe"], # noqa: S603, S607
6666
cwd=os.path.dirname(__file__),
6767
stderr=subprocess.STDOUT,
6868
)

utilities/export_todo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ def extract_todo_items(root_directory: str) -> dict:
6666
if not filename.endswith(".py"):
6767
continue
6868

69-
filename = os.path.join(root, filename)
69+
filename = os.path.join(root, filename) # noqa: PLW2901
7070
with codecs.open(filename, encoding="utf8") as file_handle:
7171
content = file_handle.readlines()
7272

7373
in_todo = False
7474
line_number = 1
7575
todo_item = []
7676
for i, line in enumerate(content):
77-
line = line.strip()
77+
line = line.strip() # noqa: PLW2901
7878
if line.startswith("# TODO:"):
7979
in_todo = True
8080
line_number = i + 1

utilities/unicode_to_ascii.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def unicode_to_ascii(root_directory: str):
5555
if filename == "unicode_to_ascii.py":
5656
continue
5757

58-
filename = os.path.join(root, filename)
58+
filename = os.path.join(root, filename) # noqa: PLW2901
5959
with codecs.open(filename, encoding="utf8") as file_handle:
6060
content = file_handle.read()
6161

0 commit comments

Comments
 (0)