Skip to content

Commit 3da6213

Browse files
fmeumcopybara-github
authored andcommitted
Add Pyink formatting config to Bazel
This allows contributors to properly format Python code. Closes #27762. PiperOrigin-RevId: 840293027 Change-Id: Ib15173b4b072aa3fea98e7cd16b79f3fa5b0a75a
1 parent aa3b2d2 commit 3da6213

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Python files in this repo are formatted with https://github.com/google/pyink.
2+
[tool.pyink]
3+
line-length = 80
4+
unstable = true
5+
target-version = []
6+
pyink-indentation = 2
7+
pyink-use-majority-quotes = true
8+
pyink-annotation-pragmas = [
9+
"noqa",
10+
"pylint:",
11+
"type: ignore",
12+
"pytype:",
13+
"mypy:",
14+
"pyright:",
15+
"pyre-",
16+
]

0 commit comments

Comments
 (0)