Debian Codegraph @

pyproject.toml

raw
1 [tool.ruff]
2 line-length = 119
3 target-version = "py310"
4
5 [tool.ruff.lint]
6 preview = true
7 extend-select = [
8 "B009", # static getattr
9 "B010", # static setattr
10 "CPY", # Copyright
11 "E", # PEP8 errors
12 "F", # PEP8 formatting
13 "I", # Import sorting
14 "TID251", # Banned API
15 "UP", # Pyupgrade
16 "W", # PEP8 warnings
17 ]
18 ignore = [
19 "E501", # Line length (handled by ruff-format)
20 "E741", # Ambiguous variable name
21 "W605", # Invalid escape sequence
22 "UP007", # X | Y type annotations
23 "UP045", # Use `X | None` for type annotations
24 "UP035", # temporarily disabled to minimize upgrade changes
25
26 ]
27
28 [tool.ruff.lint.per-file-ignores]
29 "__init__.py" = [
30 "F401", # Ignore seemingly unused imports (they're meant for re-export)
31 ]
32 "manim_animations/*" = ["ALL"]
33
34 [tool.ruff.lint.isort]
35 lines-after-imports = 2
36 known-first-party = ["accelerate"]
37
38 [tool.ruff.format]
39 exclude = [
40 "manim_animations/*"
41 ]
42
43 [tool.ruff.lint.flake8-tidy-imports.banned-api]
44 "os.getenv".msg = "Use os.environ instead"
45 "os.putenv".msg = "Use os.environ instead"
46 "os.unsetenv".msg = "Use os.environ instead"