Skip to content

Commit 9868e4f

Browse files
committed
Add bzlmod support
Signed-off-by: James Wainwright <james.wainwright@lowrisc.org>
1 parent 3c74739 commit 9868e4f

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
bazel-*
2+
MODULE.bazel.lock

MODULE.bazel

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module(name = "lowrisc_misc_linters")
2+
3+
bazel_dep(name = "rules_python", version = "0.32.2")
4+
bazel_dep(
5+
name = "aspect_rules_lint",
6+
version = "1.0.0-rc3",
7+
dev_dependency = True,
8+
)
9+
10+
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
11+
python.toolchain(python_version = "3.9")
12+
13+
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
14+
pip.parse(
15+
hub_name = "pip",
16+
python_version = "3.9",
17+
requirements_lock = "//:requirements.txt",
18+
)
19+
use_repo(pip, lowrisc_misc_linters_pip="pip")

WORKSPACE.bzlmod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
load("@aspect_rules_lint//lint:ruff.bzl", "fetch_ruff")
2+
fetch_ruff()

0 commit comments

Comments
 (0)