diff --git a/.gitignore b/.gitignore index ac51a05..0d4fed2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ bazel-* +MODULE.bazel.lock diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 0000000..935d0c9 --- /dev/null +++ b/MODULE.bazel @@ -0,0 +1,19 @@ +module(name = "lowrisc_misc_linters") + +bazel_dep(name = "rules_python", version = "0.32.2") +bazel_dep( + name = "aspect_rules_lint", + version = "1.0.0-rc3", + dev_dependency = True, +) + +python = use_extension("@rules_python//python/extensions:python.bzl", "python") +python.toolchain(python_version = "3.9") + +pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") +pip.parse( + hub_name = "pip", + python_version = "3.9", + requirements_lock = "//:requirements.txt", +) +use_repo(pip, lowrisc_misc_linters_pip="pip") diff --git a/WORKSPACE.bzlmod b/WORKSPACE.bzlmod new file mode 100644 index 0000000..fc848f6 --- /dev/null +++ b/WORKSPACE.bzlmod @@ -0,0 +1,2 @@ +load("@aspect_rules_lint//lint:ruff.bzl", "fetch_ruff") +fetch_ruff()