summaryrefslogtreecommitdiffstats
path: root/.isort.cfg
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2023-08-21 21:20:32 -0400
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-08-22 18:32:22 +0000
commit6447733eb28ea188d551ae518a7e51ebf63a4350 (patch)
tree3e2571b39af0f8544dae4660ebc1d29e2a7bda9d /.isort.cfg
parent06ddc8c50a7e802dbaf8468144c2b5773cda3714 (diff)
downloadgit-repo-6447733eb28ea188d551ae518a7e51ebf63a4350.tar.gz
isort: format codebasev2.36
Change-Id: I6f11d123b68fd077f558d3c21349c55c5f251019 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/383715 Reviewed-by: Gavin Mak <gavinmak@google.com> Tested-by: Mike Frysinger <vapier@google.com> Commit-Queue: Mike Frysinger <vapier@google.com>
Diffstat (limited to '.isort.cfg')
-rw-r--r--.isort.cfg41
1 files changed, 41 insertions, 0 deletions
diff --git a/.isort.cfg b/.isort.cfg
new file mode 100644
index 00000000..bc47b614
--- /dev/null
+++ b/.isort.cfg
@@ -0,0 +1,41 @@
1# Copyright 2023 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Config file for the isort python module.
16# This is used to enforce import sorting standards.
17#
18# https://pycqa.github.io/isort/docs/configuration/options.html
19
20[settings]
21# Be compatible with `black` since it also matches what we want.
22profile = black
23
24line_length = 80
25length_sort = false
26force_single_line = true
27lines_after_imports = 2
28from_first = false
29case_sensitive = false
30force_sort_within_sections = true
31order_by_type = false
32
33# Ignore generated files.
34extend_skip_glob = *_pb2.py
35
36# Allow importing multiple classes on a single line from these modules.
37# https://google.github.io/styleguide/pyguide#s2.2-imports
38single_line_exclusions =
39 abc,
40 collections.abc,
41 typing,