forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
47 lines (45 loc) · 966 Bytes
/
ruff.toml
File metadata and controls
47 lines (45 loc) · 966 Bytes
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
45
46
47
extend-exclude = [
"numpy/__config__.py",
"numpy/distutils",
"numpy/typing/_char_codes.py",
"numpy/typing/tests/data",
"spin/cmds.py",
# Submodules.
"doc/source/_static/scipy-mathjax",
"vendored-meson/meson",
"numpy/fft/pocketfft",
"numpy/_core/src/umath/svml",
"numpy/_core/src/npysort/x86-simd-sort",
"numpy/_core/src/highway",
"numpy/_core/src/common/pythoncapi-compat",
]
[lint]
preview = true
extend-select = [
"PIE",
"FLY",
"E",
"W",
"PGH",
"PLE",
"UP",
]
ignore = [
"F", # TODO: enable Pyflakes rules
"PIE790", # Unnecessary `pass` statement
"E241",
"E251",
"E265",
"E266",
"E302",
"E402",
"E501", # TODO: Line too long
"E712",
"E721",
"E731",
"E741",
"UP015", # Unnecessary mode argument
"UP031", # TODO: Use format specifiers instead of percent format
]
[lint.per-file-ignores]
"test*.py" = ["E201", "E714"]