Skip to content

Commit

Permalink
Add bzlmod support
Browse files Browse the repository at this point in the history
Signed-off-by: James Wainwright <[email protected]>
  • Loading branch information
jwnrt committed Jun 12, 2024
1 parent 3c74739 commit 9868e4f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
bazel-*
MODULE.bazel.lock
19 changes: 19 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -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")
2 changes: 2 additions & 0 deletions WORKSPACE.bzlmod
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
load("@aspect_rules_lint//lint:ruff.bzl", "fetch_ruff")
fetch_ruff()

0 comments on commit 9868e4f

Please sign in to comment.