Skip to content

Commit d79170b

Browse files
ConchylicultorThe dataclass_array Authors
authored andcommitted
Update vscode configs to use pyink formatter
PiperOrigin-RevId: 501585033
1 parent 740bce0 commit d79170b

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

.style.yapf

Lines changed: 0 additions & 5 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"ms-python.black-formatter"
4+
]
5+
}

.vscode/settings.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
"files.trimFinalNewlines": true,
44
"files.trimTrailingWhitespace": true,
55
"files.associations": {
6-
".pylintrc": "ini",
7-
".style.yapf": "ini"
6+
".pylintrc": "ini"
87
},
98
"python.testing.unittestEnabled": false,
109
"python.testing.nosetestsEnabled": false,
1110
"python.testing.pytestEnabled": true,
1211
"python.linting.pylintUseMinimalCheckers": false,
1312
"[python]": {
14-
"editor.rulers": [
15-
80
16-
],
13+
"editor.rulers": [80],
1714
"editor.tabSize": 2,
15+
"editor.defaultFormatter": "ms-python.black-formatter",
16+
"editor.formatOnSave": true,
1817
"editor.detectIndentation": false
1918
},
20-
"python.formatting.provider": "yapf",
19+
"python.formatting.provider": "none",
20+
"black-formatter.path": ["pyink"],
2121
"files.watcherExclude": {
2222
"**/.git/**": true
2323
},

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,18 @@ dev = [
3838
"pytest",
3939
"pytest-xdist",
4040
"pylint>=2.6.0",
41-
"yapf",
41+
"pyink",
4242
# Lazy deps
4343
"chex",
4444
"jax[cpu]",
4545
"tf-nightly",
4646
]
4747

48+
[tool.pyink]
49+
# Formatting configuration to follow Google style-guide
50+
pyink-indentation = 2
51+
pyink-use-majority-quotes = true
52+
4853
[build-system]
4954
requires = ["flit_core >=3.5,<4"]
5055
build-backend = "flit_core.buildapi"

0 commit comments

Comments
 (0)