# Copyright (c) 2019, Solitude Developers
#
# This source code is licensed under the BSD-3-Clause license found in the
# COPYING file in the root directory of this source tree
from solitude.tools.base import ToolNpmTemplate
from solitude.common.resource_util import get_global_config
[docs]class EthLint(ToolNpmTemplate):
[docs] def __init__(self, tooldir: str, version: str):
lockfile = get_global_config()["EthLint.PackageLock"]
if lockfile is not None:
lockfile = lockfile.format(version=version)
super().__init__(
tooldir=tooldir,
name="EthLint",
version=version,
provides="solium",
package="ethlint",
executable="solium",
lockfile=lockfile)