0
Commit Graph

6 Commits

Author SHA1 Message Date
Takuto Ikuta
e108f10dfc tools: remove USE_PYTHON3 = True from PRESUBMIT.py
presubmit now uses python3 only.

This is generated by
$ rg -l '^USE_PYTHON3 = True' | \
  xargs sed -z -i "s/\n*USE_PYTHON3 = True\n*/\n\n\n/"
with some more modifications.

This also removes run_on_python2, run_on_python3, and skip_shebang_check
args.

Bug: 1207012
Change-Id: I43ac77120dc2456bc065a41750f1f5ddfd88d9e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4576841
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1152146}
2023-06-01 21:38:30 +00:00
Bruce Dawson
a9e1d9f7f5 Add encoding to open calls in tools
When opening a text file it is important to specify encoding='utf-8'
since otherwise the behavior will depend on your system locale. This
change fixes all the encoding omissions I could find in the tools
directory, found by running "git cl presubmit --all" with
crrev.com/c/4290775 patched in.

Bug: 1418846
Change-Id: Ie4478ff9b3e3814e6396a5b0c3c0e9c273202838
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4295846
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1111897}
2023-03-01 23:24:14 +00:00
Avi Drissman
dfd8808526 Update copyright headers in testing/, tools/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c95.

No-Try: true
No-Presubmit: true
Bug: 1098010
Change-Id: I3a8a7b150e7bd64690534727150646081df50439
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3900697
Reviewed-by: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047644}
2022-09-15 20:11:09 +00:00
Bruce Dawson
09caf8cc13 Fix JSONDataGenerator for Windows
JSONDataGenerator converts /, ., and - characters to _ when creating
header guards. On Windows it also needs to convert \ characters so this
adds them to the list (on all platforms).

Bug: 1309977
Change-Id: I34c1a152b6b8ba4ca80c4f804f3d5c86008762e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3642625
Auto-Submit: Bruce Dawson <brucedawson@chromium.org>
Reviewed-by: Marcello Salomao <msalomao@google.com>
Commit-Queue: Marcello Salomao <msalomao@google.com>
Cr-Commit-Position: refs/heads/main@{#1002502}
2022-05-12 05:57:39 +00:00
Josh Simmons
1a20a8276d Add DIR_METADATA to Files team directories.
Added a DIR_METADATA file pointing back to the main Files team
COMMON_METADATA file into directories owned by the Files team.

Bug: 1315079
Test: None, documentation only.
Change-Id: I54746d10f3eefd8d3149cb8c5ce5c5e10f07d148
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3580642
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Luciano Pacheco <lucmult@chromium.org>
Commit-Queue: Josh Simmons <simmonsjosh@google.com>
Cr-Commit-Position: refs/heads/main@{#990915}
2022-04-11 08:00:12 +00:00
Wenbo Jie
56409bfcc1 [FilesRecentFilter] add json data generator tool
This is part of the Files app Recent filter change. We need a new tool
to utilize one or more JSON5 files as data sources and generate files
based on the templates provided.

The usage of this tool is in CL:3469537 where we use a file_types.json5
file as the single source of truth to generate files both in Javascript
and C++ to maintain consistency.

Bug: 1259359
Change-Id: I49af4a770868b2f454b74255fb6291a74f58eb98
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3473619
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Wenbo Jie <wenbojie@chromium.org>
Cr-Commit-Position: refs/heads/main@{#976052}
2022-03-01 02:42:39 +00:00