Skip to content

Commit 05f3eaa

Browse files
btabacopybara-github
authored andcommitted
Add pyink config to pyproject.
PiperOrigin-RevId: 703179331 Change-Id: I1d3f0b84f92a7a5648ef2a6c1f74bce87eabf6db
1 parent d88ce09 commit 05f3eaa

File tree

1 file changed

+7
-34
lines changed

1 file changed

+7
-34
lines changed

pyproject.toml

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -55,37 +55,6 @@ all = [
5555
[tool.flit.module]
5656
name = "mujoco_playground"
5757

58-
[tool.ruff]
59-
lint.select = [
60-
"E", # pycodestyle errors.
61-
"F", # Pyflakes rules.
62-
"PLC", # Pylint convention warnings.
63-
"PLE", # Pylint errors.
64-
"PLR", # Pylint refactor recommendations.
65-
"PLW", # Pylint warnings.
66-
"I" # Import sorting.
67-
]
68-
lint.ignore = [
69-
"E741", # Ambiguous variable name. (l, O, or I)
70-
"E501", # Line too long.
71-
"PLR2004", # Magic value used in comparison.
72-
"PLR0915", # Too many statements.
73-
"PLR0913", # Too many arguments.
74-
"PLC0414", # Import alias does not rename variable. (this is used for exporting names)
75-
"PLC1901", # Use falsey strings.
76-
"PLR5501", # Use `elif` instead of `else if`.
77-
"PLR0911", # Too many return statements.
78-
"PLR0912", # Too many branches.
79-
"PLW0603", # Global statement updates are discouraged.
80-
"PLW2901" # For loop variable overwritten.
81-
]
82-
exclude = [
83-
"mujoco_menagerie/",
84-
]
85-
86-
[tool.black]
87-
extend-exclude = "mujoco_menagerie/"
88-
8958
[tool.mypy]
9059
python_version = "3.12"
9160
ignore_missing_imports = true
@@ -96,6 +65,10 @@ exclude = ["scripts/", "mujoco_menagerie/"]
9665
addopts = [
9766
"--ignore=mujoco_menagerie",
9867
]
99-
testpaths = [
100-
"tests",
101-
]
68+
69+
[tool.pyink]
70+
line-length = 80
71+
unstable = true
72+
pyink-indentation = 2
73+
pyink-use-majority-quotes = true
74+
extend-exclude = "mujoco_menagerie/"

0 commit comments

Comments
 (0)