Repository URL to install this package:
|
Version:
1.26.0.dev0+gite506aa5f ▾
|
pantsbuild.pants.contrib.python.checks
/
contrib
/
python
/
checks
/
tasks
/
checkstyle
/
pyflakes_subsystem.py
|
|---|
# 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