/usr/lib/python3/dist-packages/pylama/lint/__init__.py is in python3-pylama 7.3.3-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | """Custom module loader."""
class Linter(object):
"""Abstract class for linter plugin."""
@staticmethod
def allow(path):
"""Check path is relevant for linter.
:return bool:
"""
return path.endswith('.py')
@staticmethod
def run(path, **meta):
"""Method 'run' should be defined."""
raise NotImplementedError(__doc__)
|