ruff.toml•1.38 kB
target-version = "py311"
line-length = 100
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"N", # pep8-naming
"S", # flake8-bandit
"T20", # flake8-print
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"DTZ", # flake8-datetimez
"Q", # flake8-quotes
"TCH", # flake8-type-checking
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
"S101", # use of assert
"S603", # subprocess call without shell=True
"S607", # starting subprocess with path
"B008", # do not perform function calls in argument defaults
"N805", # first argument should be self
]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"docs/",
]
[lint.per-file-ignores]
"tests/*" = ["S", "ARG", "T20"]
"__init__.py" = ["F401"]
[lint.mccabe]
max-complexity = 10
[lint.isort]
known-first-party = ["config", "core", "services", "tools", "resources", "prompts", "utils"]
force-sort-within-sections = true