-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [Dev] Add rules_lint
- Loading branch information
Showing
22 changed files
with
252 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
blank_issues_enabled: true | ||
blank_issues_enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
alias( | ||
name = "format", | ||
actual = "//bazel/tools/format", | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package(default_visibility = ["//visibility:public"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
load("@aspect_rules_lint//format:defs.bzl", "format_multirun") | ||
|
||
format_multirun( | ||
name = "format", | ||
c = "@llvm_toolchain_llvm//:bin/clang-format", | ||
cc = "@llvm_toolchain_llvm//:bin/clang-format", | ||
cuda = "@llvm_toolchain_llvm//:bin/clang-format", | ||
# You can use standard gofmt instead of stricter gofumpt: | ||
# go = "@go_sdk//:bin/gofmt", | ||
go = "@aspect_rules_lint//format:gofumpt", | ||
jsonnet = "@aspect_rules_lint//format:jsonnetfmt", | ||
python = "@aspect_rules_lint//format:ruff", | ||
shell = "@aspect_rules_lint//format:shfmt", | ||
visibility = ["//:__subpackages__"], | ||
yaml = "@aspect_rules_lint//format:yamlfmt", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
#!/bin/bash | ||
|
||
apt-get -y update \ | ||
&& apt-get install -y software-properties-common \ | ||
&& add-apt-repository ppa:deadsnakes/ppa | ||
apt-get -y update && | ||
apt-get install -y software-properties-common && | ||
add-apt-repository ppa:deadsnakes/ppa | ||
|
||
apt install -y bash \ | ||
build-essential \ | ||
git \ | ||
git-lfs \ | ||
curl \ | ||
ca-certificates \ | ||
libsndfile1-dev \ | ||
libgl1 \ | ||
python3.10 \ | ||
python3-pip \ | ||
python3.10-venv && \ | ||
rm -rf /var/lib/apt/lists | ||
build-essential \ | ||
git \ | ||
git-lfs \ | ||
curl \ | ||
ca-certificates \ | ||
libsndfile1-dev \ | ||
libgl1 \ | ||
python3.10 \ | ||
python3-pip \ | ||
python3.10-venv && | ||
rm -rf /var/lib/apt/lists | ||
|
||
# TODO: Install bazel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
pip install --upgrade numpy torch accelerate triton torchvision transformers huggingface_hub | ||
pip install --upgrade numpy torch accelerate triton torchvision transformers huggingface_hub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
"""Launch a talker and a listener.""" | ||
|
||
import launch | ||
import launch_ros.actions | ||
|
||
|
||
def generate_launch_description(): | ||
"""Launch a talker and a listener.""" | ||
return launch.LaunchDescription([ | ||
launch_ros.actions.Node( | ||
# Provide the rootpath for the node. | ||
executable='chatter/talker', | ||
output='screen', | ||
name='talker'), | ||
launch_ros.actions.Node(executable='chatter/listener', | ||
output='screen', | ||
name='listener'), | ||
]) | ||
return launch.LaunchDescription( | ||
[ | ||
launch_ros.actions.Node( | ||
# Provide the rootpath for the node. | ||
executable="chatter/talker", | ||
output="screen", | ||
name="talker", | ||
), | ||
launch_ros.actions.Node( | ||
executable="chatter/listener", output="screen", name="listener" | ||
), | ||
] | ||
) |
Oops, something went wrong.