add comments to suppress useless warnings from LGTM
This commit is contained in:
@ -8,10 +8,10 @@ LAMMPS module global members:
|
||||
result of :py:func:`lammps.version`.
|
||||
"""
|
||||
|
||||
from .constants import *
|
||||
from .core import *
|
||||
from .data import *
|
||||
from .pylammps import *
|
||||
from .constants import * # lgtm [py/polluting-import]
|
||||
from .core import * # lgtm [py/polluting-import]
|
||||
from .data import * # lgtm [py/polluting-import]
|
||||
from .pylammps import * # lgtm [py/polluting-import]
|
||||
|
||||
# convert installed module string version to numeric version
|
||||
def get_version_number():
|
||||
@ -28,7 +28,7 @@ def get_version_number():
|
||||
from importlib.metadata import version
|
||||
try:
|
||||
vstring = version('lammps')
|
||||
except:
|
||||
except: # lgtm [py/catch-base-exception]
|
||||
# nothing to do, ignore
|
||||
pass
|
||||
|
||||
@ -36,7 +36,7 @@ def get_version_number():
|
||||
from pkg_resources import get_distribution
|
||||
try:
|
||||
vstring = get_distribution('lammps').version
|
||||
except:
|
||||
except: # lgtm [py/catch-base-exception]
|
||||
# nothing to do, ignore
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user