Skip to content

Commit

Permalink
feat(ansible/pre-commit): install pre-commit from pip (tier4#81)
Browse files Browse the repository at this point in the history
* feat(ansible/pre-commit): install pre-commit from pip

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* fix link

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
  • Loading branch information
kenji-miyake committed Mar 6, 2022
1 parent 31e372e commit a09ff43
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ Suppose that you've set up a workspace.
ros2 launch autoware_launch planning_simulator.launch.xml vehicle_model:=sample_vehicle sensor_model:=sample_sensor_kit map_path:=$HOME/Downloads/sample_map
```

> Note: More tutorials will be written [here](https://autowarefoundation.github.io/autoware-documentation/tier4-proposal/) soon.
> Note: More tutorials will be written [here](https://autowarefoundation.github.io/autoware-documentation/) soon.
7 changes: 7 additions & 0 deletions ansible/roles/pre_commit/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
- name: Install pre-commit
become: true
ansible.builtin.pip:
name: pre-commit
state: latest
executable: pip3

- name: Install clang-format
become: true
ansible.builtin.pip:
Expand Down

0 comments on commit a09ff43

Please sign in to comment.