- Replace pylint with ruff (backend/ruff.toml) - line-length=300, max-complexity=10, per-file-ignores for tests - Exclude D (docstrings replaced by contracts) and ANN - Add eslint flat config for frontend (eslint-plugin-svelte) - Allow console.info/warn/error (belief-state protocol) - Remove .pylintrc (references non-existent plugin) - Update agent docs: ruff check . + npm run lint - Add ruff>=0.11.0 to backend/requirements.txt - Add eslint + plugins to frontend devDependencies
30 lines
500 B
TOML
30 lines
500 B
TOML
target-version = "py313"
|
|
line-length = 300
|
|
|
|
[lint]
|
|
select = [
|
|
"F", # pyflakes
|
|
"E", "W", # pycodestyle
|
|
"I", # isort
|
|
"N", # pep8-naming
|
|
"UP", # pyupgrade
|
|
"B", # flake8-bugbear
|
|
"SIM", # flake8-simplify
|
|
"C4", # flake8-comprehensions
|
|
"C90", # mccabe
|
|
"ARG", # flake8-unused-arguments
|
|
"T20", # flake8-print
|
|
"RUF", # ruff-specific
|
|
]
|
|
ignore = [
|
|
"E501",
|
|
"D",
|
|
"ANN",
|
|
]
|
|
|
|
[lint.mccabe]
|
|
max-complexity = 10
|
|
|
|
[lint.per-file-ignores]
|
|
"tests/*" = ["T20"]
|