summaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
authorGavin Mak <gavinmak@google.com>2023-03-11 04:35:22 +0000
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-20 20:37:24 +0000
commit1604cf255f8c1786a23388db6d5277ac7949a24a (patch)
tree4bb894bb16fb4a6c65c21335ba14c6ab2a27887a /pyproject.toml
parent75eb8ea9354cfcecfaf185a37a10ad2c8b4cd0d2 (diff)
downloadgit-repo-1604cf255f8c1786a23388db6d5277ac7949a24a.tar.gz
Make black with line length 80 repo's code style
Provide a consistent formatting style and tox commands to lint and format. Bug: b/267675342 Change-Id: I33ddfe07af8473f4334c347d156246bfb66d4cfe Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/362954 Reviewed-by: Josip Sokcevic <sokcevic@google.com> Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml18
1 files changed, 18 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 00000000..8ff3570f
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,18 @@
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[tool.black]
16line-length = 80
17# NB: Keep in sync with tox.ini.
18target-version = ['py36', 'py37', 'py38', 'py39', 'py310']