Commit graph

19 commits

Author SHA1 Message Date
Esun Kim
d7f46b6fb7
[Doc] Fix typos (#3446)
* Fix typos

* Typos

* More

* Last
2026-02-11 17:18:49 +00:00
Ryan Kuester
b3967a901e
style: add .style.yapf to control yapf styling of Python code (#2709)
Add a .style.yapf file so yapf can be used to style Python code without
passing the project's style via command line option. Remove the
corresponding patch to pigweed's call to yapf, used by CI, and instead
let it too rely on .style.yapf. Remove the developer documentation's
instruction to use the command line option.

BUG=description
2024-10-02 18:36:01 +00:00
RJ Ascani
f9044b0334
Remove Wave as dependency (#2508)
The Wave pypi package was recently updated, and the new version caused
failures in our CI for pip installing it. From what I can tell, this
package is no longer being used, so this PR simply removes it as a build
dependency.

BUG=b/329887147
2024-03-15 14:04:11 -07:00
Ryan Kuester
0c03d3d7db
build(bazel): pin bazel version to 7.0.0 (#2360)
Pin the Bazel version used and executed by Bazelisk to guarantee that
TFLM is built with a specified version of Bazel.

When the latest release of Bazel went from version 6.3 to 7.0, our
builds, which were set to follow the latest release (because there was
no .bazelversion), were disrupted due to incompatibilities. By pinning
the Bazel version, we prevent such surprises in the future.

Revise the developer documentation to mandate the use of Bazelisk.

According to [Bazelisk documentation](9d3fc7d5e3/README.md (ensuring-that-your-developers-use-bazelisk-rather-than-bazel)),
direct installations of bazel typically use a wrapper script which
checks .bazelversion also.

BUG=see description
2024-01-03 20:53:21 +00:00
Ryan Kuester
953648dfc7
docs: clarify the guidance for BUG=#nn in PR descriptions (#2026)
Clarify the guidance for linking a PR description to its bug number. The last
bullet was obsolete and confusing now that we require the specific text
`BUG=#nn`, as was mentioned in the second bullet.

BUG=see description
2023-06-08 00:43:34 +00:00
RJ Ascani
73aa99baa0
Update bazel install script path (#1995)
The bazel install script path was changed from ci/install_bazel.sh to ci/install_bazelisk.sh. This commit updates the CONTRIBUTING doc with the new path.
BUG=doc fix
2023-05-24 21:29:50 +00:00
Mike Bernico
995eb251d2
Updated CI to use bazelisk and install bazel into /usr/local/bin. (#1853)
BUG=fixes #1852
2023-03-28 05:34:44 +00:00
Pauline Sho
a6aab3bd95
Minor update to CONTRIBUTING.md on cpplint installation. (#1023)
* Minor update to `CONTRIBUTING.md` on cpplint installation.

`cpplint` can be installed via `pip` as well as getting a local copy.
Improving documentation to include the `pip` alternative.

* Minor update to `CONTRIBUTING.md` on cpplint installation.

`cpplint` can be installed via `pip` as well as getting a local copy.
Improving documentation to include the `pip` alternative.

BUG=

* Change pip3 to pip

Co-authored-by: Ting Yan <94130036+tingyan19@users.noreply.github.com>
2022-04-06 17:57:06 +00:00
Advait Jain
e958bb1161
Allow using Python scripts without bazel. (#639)
* Allow using Python scripts without bazel.

Manually verified and documented the steps that I can follow to run
Python code without Bazel.

BUG=http://b/204109200
NO_CHECK_TFLITE_FILES=manually ran the sync script.

* Address review comments.
2021-10-29 14:40:24 -07:00
Pratam Jain
7eef42fd94
Update CONTRIBUTING.md (#599)
Correcting the grammar.
2021-10-18 00:13:02 -07:00
Advait Jain
257f47fb6c
Update the docs (#516)
* we now accept a lot more types of contributions and have improved the documentation.
 * add link to the kernel porting guide from the readme.
 * small updates to the op porting guide.
2021-09-16 12:36:02 -07:00
Advait Jain
74f357c538
tensorflow --> tflite-micro (#391)
BUG=fix the docs.
2021-08-11 20:47:27 +00:00
Advait Jain
43265614fe
Turn on Python formatting checks as part of CI. (#316)
* Groundwork to enable python format checks (via yapf) as part of the CI.

With this change:
 * we are set up to use yapf as part of the docker container
 * pigweed patch is updated to use the google Python style (pep8 with indent of 2 spaces)
 * some documentation updates.

The code still needs to be formatted, and then the Python formatting check will be turned on as part of ci.

BUG=http://b/194404216

* Format all the code.

Once this change is merged, we will turn on Python formatting check as
part of the CI.

* minor formatting update.

* Turn on Python formatting checks as part of CI.

Also, add an option to fix the formatting via the test_code_style.sh
script.

BUG=http://b/194404984 and http://b/194404216
2021-07-22 21:42:08 +00:00
Advait Jain
762ff80073
Groundwork to enable python format checks (via yapf) as part of the CI. (#314)
With this change:
 * we are set up to use yapf as part of the docker container
 * pigweed patch is updated to use the google Python style (pep8 with indent of 2 spaces)
 * some documentation updates.

The code still needs to be formatted, and then the Python formatting check will be turned on as part of ci.

BUG=http://b/194404216
2021-07-22 21:21:00 +00:00
jwithers
cd5cecd081
check PR description for a BUG= line (#187)
* check PR description for a BUG= line

* Changed file name and added some more documentation.

* move the if to be on the steo instead of at the job.

This is to allow for the job to succeed (instead of being skipped) when
the BUG= text is found. And as a result we can have it be a required
status check.

Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
Co-authored-by: Advait Jain <advaitjain@google.com>
2021-06-22 21:19:00 +00:00
Advait Jain
ad01817334
Update contributing.md (#106) 2021-05-27 21:12:07 +00:00
Advait Jain
d1a6c7900c
First steps towards getting CI going (#3)
Manually confirmed that the steps in CONTRIBUTING.md work:
```
docker build -t tflm-test -f ci/Dockerfile.micro .
docker run --rm tflm-test
```
2021-04-09 12:54:36 -07:00
Advait Jain
cd3186c324
Small fixes to the docs and adding a CODEOWNERS file. (#1) 2021-04-09 10:06:12 -07:00
Advait Jain
d96bdbdc61 Initial commit 2021-04-08 16:23:24 -07:00