Documentation for @aspect_rules_lint@v2.3.0 — View source
tools/lint/BUILD.bazel:
tools/lint/linters.bzl:
Function: flake8_action
Run flake8 as an action under Bazel.
Based on https://flake8.pycqa.org/en/latest/user/invocation.html
Parameters
output file containing exit code of flake8
If None, then fail the build when flake8 exits non-zero.
additional command-line options, see https://flake8.pycqa.org/en/latest/user/options.html
Function: lint_flake8_aspect
A factory function to create a linter aspect.
Attrs:
binary: a flake8 executable. Can be obtained from rules_python like so:
load(“@rules_python//python/entry_points:py_console_script_binary.bzl”, “py_console_script_binary”)
py_console_script_binary(
name = “flake8”,
pkg = “@pip//flake8:pkg”,
)
config: the flake8 config file (setup.cfg, tox.ini, or .flake8)

