isort 764 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env vpython3
  2. # Copyright 2022 The Chromium Authors. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. # Note: We use tags here instead of refs because refs will always hit the
  6. # network to see if there are any updates.
  7. # [VPYTHON:BEGIN]
  8. # python_version: "3.8"
  9. #
  10. # wheel: <
  11. # name: "infra/python/wheels/isort-py3"
  12. # version: "version:5.10.1"
  13. # >
  14. #
  15. # [VPYTHON:END]
  16. from pathlib import Path
  17. import sys
  18. THIS_DIR = Path(__file__).resolve().parent
  19. RC_FILE = THIS_DIR / '.isort.cfg'
  20. # Set default config options. If a project wants to deviate, they'll have to
  21. # manually override.
  22. sys.argv = sys.argv[:1] + [f'--settings-file={RC_FILE}'] + sys.argv[1:]
  23. import isort.__main__