-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.isort.cfg
62 lines (56 loc) · 1.43 KB
/
.isort.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Config file for the isort python module.
# This is used to enforce import sorting standards.
#
# https://pycqa.github.io/isort/docs/configuration/options.html
[settings]
# Be compatible with `black` since it also matches what we want.
profile = black
line_length = 80
length_sort = false
force_single_line = true
lines_after_imports = 2
from_first = false
case_sensitive = false
force_sort_within_sections = true
order_by_type = false
# Ignore generated files.
extend_skip_glob = *_pb2.py
# Have to mark third_party/ libs as third party.
# And libraries we list in cros lint's PYTHONPATH.
# NB: Keep in sync with pylintrc.
known_third_party =
_emerge,
apiclient,
chromite.third_party,
elftools,
gcloud,
google,
googleapiclient,
httplib2,
jinja2,
jsonschema,
lddtree,
magic,
mock,
oauth2client,
portage,
pylint,
requests,
six,
sqlalchemy,
yaml,
known_first_party =
chromite
# Allow importing multiple classes on a single line from these modules.
# https://google.github.io/styleguide/pyguide#s2.2-imports
single_line_exclusions =
abc,
chromite.api.gen.config.replication_config_pb2,
chromite.third_party.google.protobuf.struct_pb2,
chromite.third_party.infra_libs.buildbucket.proto,
collections.abc,
typing,