address LGTM issues

This commit is contained in:
Axel Kohlmeyer 2021-05-31 12:01:05 -04:00
parent 4736d15b7c
commit 185664824e
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ patterns:
"""
def check_homepage(f):
pattern = re.compile(r'.*lammps.sandia.gov.*')
pattern = re.compile(r'.*lammps.sandia.gov.*') # lgtm [py/incomplete-hostname-regexp]
lineno = 1
errors = set()
@ -48,7 +48,7 @@ def check_homepage(f):
def check_file(path):
if path.find('homepage.py') >= 0: return { 'homepage_errors' : '' }
encoding = 'UTF-8'
whitespace_errors = set()
homepage_errors = set()
try:
with open(path, 'r') as f:
homepage_errors = check_homepage(f)