Skip to content

Commit 7bdf358

Browse files
committed
misc pylint cleanup
1 parent 8c9a10c commit 7bdf358

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

adabot/lib/circuitpython_library_validators.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,6 @@ def __check_lib_name(repo_name, file_name):
757757
if name_rebuilt: # avoid adding things like 'simpletest.py' -> ''
758758
file_names.add(name_rebuilt)
759759

760-
found = False
761-
762760
return any(
763761
name.startswith(repo_name) for name in file_names
764762
)
@@ -786,15 +784,15 @@ def __check_lib_name(repo_name, file_name):
786784
errors.append(ERROR_MISSING_EXAMPLE_FOLDER)
787785

788786
# first location .py files whose names begin with "adafruit_"
789-
re_str = re.compile('adafruit\_[\w]*\.py')
787+
re_str = re.compile(r'adafruit\_[\w]*\.py')
790788
pyfiles = ([x["download_url"] for x in content_list
791789
if re_str.fullmatch(x["name"])])
792790
for pyfile in pyfiles:
793791
# adafruit_xxx.py file; check if for proper usage of u___ versions of modules
794792
errors.extend(self._validate_py_for_u_modules(repo, pyfile))
795793

796794
# now location any directories whose names begin with "adafruit_"
797-
re_str = re.compile('adafruit\_[\w]*')
795+
re_str = re.compile(r'adafruit\_[\w]*')
798796
for adir in dirs:
799797
if re_str.fullmatch(adir):
800798
# retrieve the files in that directory

0 commit comments

Comments
 (0)