Skip to content

Commit ebe52f8

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

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
@@ -99,18 +99,34 @@ 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+
"FIX", # flake8-fixme
107115
"ISC001", # Conflicts with formatter
108116
]
109117

118+
[tool.ruff.lint.flake8-import-conventions]
119+
banned-from = ["array_api_typing"]
120+
121+
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
122+
array_api_typing = "xpt"
123+
110124
[tool.ruff.lint.isort]
111125
combine-as-imports = true
112126
extra-standard-library = ["typing_extensions"]
113127
known-local-folder = ["array_api_typing"]
114128

115129
[tool.ruff.format]
116130
docstring-code-format = true
131+
line-ending = "lf"
132+
preview = true

0 commit comments

Comments
 (0)