@@ -14,14 +14,27 @@ dependencies = [
14
14
15
15
[tool .ruff ]
16
16
line-length = 100
17
- target-version = " py39"
18
- select = [" E" ," F" ," I" ," UP" ]
19
- ignore = [" E501" ]
17
+ target-version = " py39" # keep your current floor
20
18
21
- [tool .ruff .isort ]
19
+ [tool .ruff .lint ]
20
+ # Keep only the "serious" checks for now (runtime errors + a bit of PyUpgrade).
21
+ select = [" E9" , " F63" , " F7" , " F82" , " UP" ]
22
+ # Keep your long-line exception and silence noisy style rules we know you use.
23
+ ignore = [" E501" , " E401" , " E402" , " E701" , " E702" , " E703" , " I001" ]
24
+
25
+ [tool .ruff .lint .isort ]
22
26
known-first-party = [" yt_audio_backup_gui" ]
23
27
combine-as-imports = true
24
28
29
+ [tool .ruff .lint .per-file-ignores ]
30
+ "tests/*" = [" F401" , " I001" , " E701" , " E702" , " E703" ]
31
+ "yt_audio_backup_gui.py" = [" E401" , " E402" , " E701" , " E702" , " E703" , " I001" ]
32
+ "workbench_core.py" = [" E401" , " E402" , " E701" , " E702" , " E703" , " I001" ]
33
+ "help_window.py" = [" E401" , " E402" , " E701" , " E702" , " E703" , " I001" ]
34
+ "ui_extras.py" = [" E401" , " E402" , " E701" , " E702" , " E703" , " I001" ]
35
+ "tooltips.py" = [" UP037" , " UP045" ] # quoted type hints / X|None suggestions
36
+ "i18n.py" = [" UP006" , " UP015" , " UP045" ]
37
+
25
38
[tool .mypy ]
26
39
python_version = " 3.9"
27
40
ignore_missing_imports = true
0 commit comments