diff --git a/examples/WORKSPACE b/examples/WORKSPACE index add251c..f98c79b 100644 --- a/examples/WORKSPACE +++ b/examples/WORKSPACE @@ -65,10 +65,3 @@ http_archive( load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() - -http_archive( - name = "linting_system", - sha256 = "8da0fedcfd5ebad2ff204caf62abfe5304f32280542128cccc044f56f0d7138d", - strip_prefix = "bazel-linting-system-0.2.1", - url = "https://github.com/thundergolfer/bazel-linting-system/archive/v0.2.1.zip", -) diff --git a/examples/lint.sh b/examples/lint.sh deleted file mode 100755 index 566a57d..0000000 --- a/examples/lint.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -bazel build //... \ - --aspects //tools/linting:aspect.bzl%lint \ - --output_groups=report - -bazel run @linting_system//:apply_changes -- \ - "$(git rev-parse --show-toplevel)/examples" \ - "$(bazel info bazel-genfiles)" \ - "$(bazel query //... | tr '\n' ' ')" diff --git a/examples/tools/linting/BUILD b/examples/tools/linting/BUILD deleted file mode 100644 index 0ace70d..0000000 --- a/examples/tools/linting/BUILD +++ /dev/null @@ -1,10 +0,0 @@ -load("@linting_system//:rules.bzl", "linter") - -package(default_visibility = ["//visibility:public"]) - -linter( - name = "python", - config = ":configuration/pyproject.toml", - config_option = "--config", - executable_path = "/usr/local/bin/black", -) diff --git a/examples/tools/linting/aspect.bzl b/examples/tools/linting/aspect.bzl deleted file mode 100644 index cabf528..0000000 --- a/examples/tools/linting/aspect.bzl +++ /dev/null @@ -1,10 +0,0 @@ -"Shows how to hook up a linter" - -load("@linting_system//:generator.bzl", "linting_aspect_generator") - -lint = linting_aspect_generator( - name = "lint", - linters = [ - "@//tools/linting:python", - ], -) diff --git a/examples/tools/linting/configuration/pyproject.toml b/examples/tools/linting/configuration/pyproject.toml deleted file mode 100644 index a1abcde..0000000 --- a/examples/tools/linting/configuration/pyproject.toml +++ /dev/null @@ -1,3 +0,0 @@ -[tool.black] -line-length = 110 -target-version = ['py37'] \ No newline at end of file