ruff configuration

This commit is contained in:
2025-12-18 22:07:08 -08:00
parent faf2596a57
commit 4e81810584
2 changed files with 25 additions and 12 deletions

View File

@@ -50,17 +50,30 @@ doc = ['sphinx', 'sphinx_rtd_theme']
[tool.pyright] [tool.pyright]
typeCheckingMode = "basic" typeCheckingMode = "basic"
[tool.pylint] [tool.ruff]
max-line-length = 88 line-length = 88
disable = [ indent-width = 4
"C0103", # (invalid-name)
"C0114", # (missing-module-docstring) [tool.ruff.lint]
"C0115", # (missing-class-docstring) select = ["E", "F", "W"]
"C0116", # (missing-function-docstring)
"R0903", # (too-few-public-methods) [tool.ruff.format]
"R0913", # (too-many-arguments) docstring-code-line-length = 88
"W0105", # (pointless-string-statement)
] # [tool.pylint]
# max-line-length = 88
# disable = [
# "C0103", # (invalid-name)
# "C0114", # (missing-module-docstring)
# "C0115", # (missing-class-docstring)
# "C0116", # (missing-function-docstring)
# "R0903", # (too-few-public-methods)
# "R0913", # (too-many-arguments)
# "W0105", # (pointless-string-statement)
# ]
#
[build-system] [build-system]
requires = ["uv_build>=0.9.18,<0.10.0"] requires = ["uv_build>=0.9.18,<0.10.0"]

View File

@@ -68,7 +68,7 @@ class Event:
trans_names.append(trans_statement) trans_names.append(trans_statement)
the_zip.append(trans_names) the_zip.append(trans_names)
except IndexError: except IndexError:
the_zip.append([None] * len(edits_audio)) the_zip.append([None] * len(edits_audio))
return [Edit(edit_statement=e1[0], return [Edit(edit_statement=e1[0],
audio_ext_statement=e1[1], audio_ext_statement=e1[1],
clip_name_statement=n1, clip_name_statement=n1,