forked from huggingface/accelerate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
36 lines (32 loc) · 789 Bytes
/
pyproject.toml
File metadata and controls
36 lines (32 loc) · 789 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
[tool.ruff]
line-length = 119
target-version = "py38"
[tool.ruff.lint]
ignore-init-module-imports = true
extend-select = [
"B009", # static getattr
"B010", # static setattr
"E", # PEP8 errors
"F", # PEP8 formatting
"I", # Import sorting
"W", # PEP8 warnings
"UP", # Pyupgrade
]
ignore = [
"E501", # Line length (handled by ruff-format)
"E741", # Ambiguous variable name
"W605", # Invalid escape sequence
"UP007", # X | Y type annotations
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # Ignore seemingly unused imports (they're meant for re-export)
]
"manim_animations/*" = ["ALL"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["accelerate"]
[tool.ruff.format]
exclude = [
"manim_animations/*"
]