chore(tooling): keep ruff format out of Markdown, allow 10 dataclass fields
ruff format restyles Python blocks inside Markdown, which silently rewrote the ffmpeg sample in README-intel.md. Documentation is not ours to restyle, so exclude *.md. Raise pylint max-attributes to 10: TranscriptResult is a data model and its eight fields are not a design smell. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -37,6 +37,8 @@ packages = ["src/ccn_transcribe"]
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
src = ["src", "tests"]
|
||||
# ruff format also restyles Python blocks inside Markdown; docs are not ours to restyle.
|
||||
extend-exclude = ["*.md"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "W", "I", "N", "UP", "B", "A", "C4", "SIM", "PTH", "RET", "ARG", "TID", "TC", "RUF"]
|
||||
@@ -54,6 +56,9 @@ venv = ".venv"
|
||||
strict = true
|
||||
files = ["src", "tests"]
|
||||
|
||||
[tool.pylint.design]
|
||||
max-attributes = 10
|
||||
|
||||
[tool.pylint.main]
|
||||
disable = ["C0114", "C0115", "C0116", "C0301", "W0611", "W0612", "R0801"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user