-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy path.ruff.toml
51 lines (44 loc) · 1.34 KB
/
.ruff.toml
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
48
49
50
51
target-version = "py39"
extend-exclude = [ 'extern', 'doc/source/gettingstarted/examples' ]
lint.extend-select = [
"A",
"B",
# "D", # TODO: Enable documentation checks and document undocumented classes/methods
"E501",
"EM",
"I",
"ICN",
"ISC",
"N",
"NPY",
"PL",
"PT",
"RET",
"RUF",
"UP",
"W",
]
lint.ignore = [
"N806", "N803", # Allow occasional use of uppercase variable and argument names (e.g. N).
"PLR2004", # Allow hard coded test results.
"PLR09", # Allow "too many" statements/arguments/etc...
"RUF012", # freud does not use typing hints
"N802", # Allow names like Lx
"NPY002", # TODO: Refactor benchmarks and tests to use numpy.random.Generator
"E741",
"E743"
]
[lint.flake8-import-conventions]
# Prefer no import aliases
aliases = {}
[lint.per-file-ignores]
"tests/*.py" = ["PLR6301", # methods defined this way are used by pytest.
"PLW2901", # TODO: Enable this check and fix after tests can be executed.
"B018", # TODO: Enable this check and fix after tests can be executed.
"PT011", # TODO: Enable this check and fix after tests can be executed.
"PT012", # TODO: Enable this check and fix after tests can be executed.
"E501", # TODO: Enable this check and fix after tests can be executed.
]
"doc/source/conf.py" = ["A001"]
[lint.pydocstyle]
convention = "google"