-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathruff.toml
55 lines (46 loc) · 1.03 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
52
53
54
55
target-version = "py311"
line-length = 200
[lint]
select = ["ALL"]
ignore = [
# to be compatible with ruff format
"E501",
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",
"ISC001",
"ISC002",
# should use polars instead
"PD",
# deprecated
"ANN101",
"ANN102",
]
[lint.extend-per-file-ignores]
"__init__.py" = ["D"]
"tests/*" = ["D"]
"examples/*" = ["D"]
"reinforcement_learning/markov_decision_process/cart_pole/type.py" = ["TRY003", "EM101"] # The idiomatic implementation of `PydanticCustomError`s are imcompatible with these rules
fixable = ["ALL"]
unfixable = []
# Ignore `E402` (import violations) in all `__init__.py` files, and in select subdirectories.
[lint.per-file-ignores]
"__init__.py" = ["E402"]
"tests/*" = ["S101"]
[lint.flake8-copyright]
author = "Hikaru Nakashima"
[lint.flake8-annotations]
mypy-init-return = true
[lint.flake8-type-checking]
strict = true
[lint.pydocstyle]
convention = "google"