Add yapf-diff.sh This tiny script can be used as a hook script in PREUPLOAD.cfg: | [Hook Scripts] | yapf-diff = yapf-diff.sh The script runs yapf-diff on the commit that will be uploaded (i.e. format only python lines that are touched by the commit). Format suggestions are printed to the screen (no file is changed). If there are any format suggestions the script fails. To apply changes one can run the script manually with '-i', and then amend the commit. Change-Id: I221355408dd6490b554cd5c63d376bf0f3c1f952
Shodan is a project to build a low-power secure embeded platform for Ambient ML applications. The target platform leverages RISC-V and OpenTitan.
This directory holds scripts used in developing Shodan:
[more scripts will appear here as more of the project is released]
Every file containing source code includes copyright and license information. For dependent / non-Google code these are inherited from the upstream repositories. If there are Google modifications you may find the Google Apache license found below.
Apache header:
Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.