diff --git a/DEPS b/DEPS index 55d6085a24d1e..e6272ccc10290 100644 --- a/DEPS +++ b/DEPS @@ -314,7 +314,7 @@ deps = { 'src/third_party/boringssl': Var('dart_git') + '/boringssl_gen.git' + '@' + Var('dart_boringssl_gen_rev'), - 'src/third_party/yapf': + 'src/flutter/third_party/yapf': Var('github_git') + '/google/yapf' + '@' + '212c5b5ad8e172d2d914ae454c121c89cccbcb35', 'src/third_party/boringssl/src': diff --git a/ci/licenses_golden/excluded_files b/ci/licenses_golden/excluded_files index d1aae5bd105df..d525a6154aae0 100644 --- a/ci/licenses_golden/excluded_files +++ b/ci/licenses_golden/excluded_files @@ -1073,6 +1073,7 @@ ../../../flutter/third_party/wuffs/release/c/README.md ../../../flutter/third_party/wuffs/script ../../../flutter/third_party/wuffs/sync.txt +../../../flutter/third_party/yapf ../../../flutter/tools ../../../flutter/tools/licenses/.dart_tool ../../../flutter/tools/licenses/.gitignore @@ -3194,7 +3195,6 @@ ../../../third_party/vulkan_memory_allocator/src ../../../third_party/vulkan_memory_allocator/tools ../../../third_party/web_dependencies/canvaskit -../../../third_party/yapf ../../../third_party/zlib/.git ../../../third_party/zlib/CMakeLists.txt ../../../third_party/zlib/DIR_METADATA diff --git a/ci/licenses_golden/tool_signature b/ci/licenses_golden/tool_signature index 7b670c796ffde..5970ad247311b 100644 --- a/ci/licenses_golden/tool_signature +++ b/ci/licenses_golden/tool_signature @@ -1,2 +1,2 @@ -Signature: 8063c36f273a2ca0d4db5f05f9d5991a +Signature: 9c9e9d44a47e4d85f1debd69bc795b40 diff --git a/tools/licenses/lib/paths.dart b/tools/licenses/lib/paths.dart index 9ed1105d30613..a336afbcd02f0 100644 --- a/tools/licenses/lib/paths.dart +++ b/tools/licenses/lib/paths.dart @@ -96,6 +96,7 @@ final Set skippedPaths = { r'flutter/third_party/txt/third_party/fonts', r'flutter/third_party/wuffs/docs', r'flutter/third_party/wuffs/script', + r'flutter/third_party/yapf', // only used for code formatting r'flutter/tools', r'flutter/web_sdk', // this code is not linked into Flutter apps; it's only used by engine tests and tools r'fuchsia/sdk/linux/docs', @@ -212,7 +213,6 @@ final Set skippedPaths = { r'third_party/vulkan_memory_allocator/src', r'third_party/vulkan_memory_allocator/tools', r'third_party/web_dependencies/canvaskit', // redundant; covered by Skia dependencies - r'third_party/yapf', // only used for code formatting r'third_party/zlib/contrib/minizip/miniunz.c', // sample file r'third_party/zlib/contrib/minizip/minizip.c', // sample file r'tools', // not distributed in binary diff --git a/tools/yapf.bat b/tools/yapf.bat index 587989cedb92a..e75ae51364a32 100644 --- a/tools/yapf.bat +++ b/tools/yapf.bat @@ -11,6 +11,6 @@ REM work across all platforms! REM REM -------------------------------------------------------------------------- -SET yapf_path=%~dp0\..\..\third_party\yapf +SET yapf_path=%~dp0\..\..\flutter\third_party\yapf cmd /V /C "SET PYTHONPATH=%yapf_path%&& vpython3 %yapf_path%\yapf %*" diff --git a/tools/yapf.sh b/tools/yapf.sh index c3cbd5587e47d..48d0974a0102a 100755 --- a/tools/yapf.sh +++ b/tools/yapf.sh @@ -35,6 +35,6 @@ function follow_links() ( SCRIPT_DIR=$(follow_links "$(dirname -- "${BASH_SOURCE[0]}")") SRC_DIR="$(cd "$SCRIPT_DIR/../.."; pwd -P)" -YAPF_DIR="$(cd "$SRC_DIR/third_party/yapf"; pwd -P)" +YAPF_DIR="$(cd "$SRC_DIR/flutter/third_party/yapf"; pwd -P)" PYTHONPATH="$YAPF_DIR" python3 "$YAPF_DIR/yapf" "$@"