generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
38 lines (33 loc) · 849 Bytes
/
ruff.toml
File metadata and controls
38 lines (33 loc) · 849 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
# Ruff configuration (based on ruff's own config)
# https://github.com/astral-sh/ruff/blob/main/pyproject.toml
target-version = "py311"
line-length = 119
extend-exclude = [
".venv",
".build",
"node_modules",
]
[lint]
select = [
"E", # pycodestyle (error)
"F", # pyflakes
"B", # bugbear
"B9",
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"I", # isort
"UP", # pyupgrade
"PIE", # flake8-pie
"PGH", # pygrep-hooks
"PYI", # flake8-pyi
"RUF", # ruff-specific rules
]
ignore = [
"B011", # assert-false
"E501", # line-too-long
"E402", # module-import-not-at-top-of-file (notebooks need load_dotenv() first)
]
[lint.isort]
required-imports = ["from __future__ import annotations"]
combine-as-imports = true
known-first-party = ["agents", "utils"]