.isort.cfg 857 B

12345678910111213141516171819202122232425262728293031
  1. # Copyright 2022 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. #
  5. # Config file for the isort python module.
  6. # This is used to enforce import sorting standards.
  7. #
  8. # https://pycqa.github.io/isort/docs/configuration/options.html
  9. [settings]
  10. # Be compatible with `black` since it also matches what we want.
  11. profile = black
  12. line_length = 80
  13. length_sort = false
  14. force_single_line = true
  15. lines_after_imports = 2
  16. from_first = false
  17. case_sensitive = false
  18. force_sort_within_sections = true
  19. order_by_type = false
  20. # Ignore generated files.
  21. extend_skip_glob = *_pb2.py
  22. # Allow importing multiple classes on a single line from these modules.
  23. # https://google.github.io/styleguide/pyguide#s2.2-imports
  24. single_line_exclusions =
  25. abc,
  26. collections.abc,
  27. typing,