Documentation for @aspect_rules_lint@v2.1.0 — View source
linters.bzl where you define the aspect, just create a test that references it.
For example, with flake8:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
linters.bzl where you define the aspect, just create a test that references it.
For example, with flake8:
load("@aspect_rules_lint//lint:lint_test.bzl", "lint_test")
load("@aspect_rules_lint//lint:flake8.bzl", "lint_flake8_aspect")
flake8 = lint_flake8_aspect(
binary = Label("//:flake8"),
config = Label("//:.flake8"),
)
flake8_test = lint_test(aspect = flake8)
load("//tools/lint:linters.bzl", "flake8_test")
py_library(
name = "unused_import",
srcs = ["unused_import.py"],
)
flake8_test(
name = "flake8",
srcs = [":unused_import"],
)
lint_test