From 4e818105841b8e971b5b5b6d0c5ab819cfd2fdb6 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Thu, 18 Dec 2025 22:07:08 -0800 Subject: [PATCH] ruff configuration --- pyproject.toml | 35 ++++++++++++++++++++++++----------- src/pycmx/event.py | 2 +- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b4fd747..81ac2fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,17 +50,30 @@ doc = ['sphinx', 'sphinx_rtd_theme'] [tool.pyright] typeCheckingMode = "basic" -[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) -] +[tool.ruff] +line-length = 88 +indent-width = 4 + +[tool.ruff.lint] +select = ["E", "F", "W"] + +[tool.ruff.format] +docstring-code-line-length = 88 + +# [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] requires = ["uv_build>=0.9.18,<0.10.0"] diff --git a/src/pycmx/event.py b/src/pycmx/event.py index 8a5f3fc..c5c9ad0 100644 --- a/src/pycmx/event.py +++ b/src/pycmx/event.py @@ -68,7 +68,7 @@ class Event: trans_names.append(trans_statement) the_zip.append(trans_names) except IndexError: - the_zip.append([None] * len(edits_audio)) + the_zip.append([None] * len(edits_audio)) return [Edit(edit_statement=e1[0], audio_ext_statement=e1[1], clip_name_statement=n1,