PRESUBMIT.py 589 B

123456789101112131415161718
  1. # Copyright 2017 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. """Top-level presubmit script for components/viz."""
  5. USE_PYTHON3 = True
  6. def CheckChangeOnUpload(input_api, output_api):
  7. import sys
  8. original_sys_path = sys.path
  9. sys.path = sys.path + [input_api.os_path.join(
  10. input_api.change.RepositoryRoot(),
  11. 'components', 'viz')]
  12. import presubmit_checks as ps
  13. allowlist=(r'^components[\\/]viz[\\/].*\.(cc|h)$',)
  14. return ps.RunAllChecks(input_api, output_api, allowlist)