Skip to content

Commit b1a8ce7

Browse files
committed
🔧: update ruff config
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
1 parent 14f845b commit b1a8ce7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,35 @@ test = [
9999

100100

101101
[tool.ruff]
102+
preview = true
103+
force-exclude = true
104+
102105
[tool.ruff.lint]
103106
extend-select = ["ALL"]
104107
ignore = [
108+
"CPY", # Missing copyright notice at top of file (NOTE revisit when autofixable)
109+
"COM812", # Conflicts with formatter
110+
"D105", # Missing docstring in magic method
111+
"D107", # Missing docstring in __init__
105112
"D203", # 1 blank line required before class docstring
106113
"D213", # Multi-line docstring summary should start at the second line
114+
"FBT", # flake8-boolean-trap
115+
"FIX", # flake8-fixme
107116
"ISC001", # Conflicts with formatter
108117
]
109118

119+
[tool.ruff.lint.flake8-import-conventions]
120+
banned-from = ["array_api_typing"]
121+
122+
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
123+
array_api_typing = "xpt"
124+
110125
[tool.ruff.lint.isort]
111126
combine-as-imports = true
112127
extra-standard-library = ["typing_extensions"]
113128
known-local-folder = ["array_api_typing"]
114129

115130
[tool.ruff.format]
116131
docstring-code-format = true
132+
line-ending = "lf"
133+
preview = true

0 commit comments

Comments
 (0)