Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from pants.contrib.python.checks.checker.pyflakes import PyflakesChecker
from pants.contrib.python.checks.tasks.checkstyle.plugin_subsystem_base import PluginSubsystemBase


class FlakeCheckSubsystem(PluginSubsystemBase):
    options_scope = "pycheck-pyflakes"

    @classmethod
    def register_plugin_options(cls, register):
        register(
            "--ignore",
            fingerprint=True,
            type=list,
            default=[],
            help="List of warning codes to ignore.",
        )

    @classmethod
    def plugin_type(cls):
        return PyflakesChecker