-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
44 lines (40 loc) · 1.22 KB
/
ruff.toml
File metadata and controls
44 lines (40 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# SPDX-License-Identifier: MIT
# Copyright (c) 2025-2026 Advanced Micro Devices, Inc. All rights reserved.
#
# Shared Ruff config for the monorepo. Per-package pyproject.toml files may
# `extend = "../ruff.toml"` and override `[tool.ruff.lint]` as needed.
line-length = 100
exclude = [
"**/*.ipynb",
"build/**",
"test/**",
"**/resources/**",
]
[lint]
select = ["ALL"]
ignore = [
"ANN002", # no type annotation for *args
"ANN003", # no type annotation for **kwargs
"BLE001", # catch blind exception
"C901", # McCabe complexity
"COM812", # interferes with formatter
"D100", # missing docstring in public module
"D104", # missing docstring in public package
"INP001", # implicit namespace package
"LOG015", # logging on root logger
"PLC0415", # top-level imports
"PLR0912", # too many branches
"PLR0913", # too many arguments in function
"S101", # allow assert
"S603", # subprocess without shell
"T201", # using print
"TRY401", # allow exception message
]
extend-select = ["I"]
[lint.pydocstyle]
convention = "google"
ignore-var-parameters = true
[format]
docstring-code-format = true
docstring-code-line-length = 100
quote-style = "double"