/ ruff.toml
ruff.toml
1 exclude = ["examples/**/*.py"] 2 3 target-version = "py39" 4 5 line-length = 120 6 7 [lint.pycodestyle] 8 max-line-length = 140 # allow unforamttable lines up to 140 chars 9 10 [lint] 11 # Add the `line-too-long` rule to the enforced rule set. By default, Ruff omits rules that 12 # overlap with the use of a formatter, like Black, but we can override this behavior by 13 # explicitly adding the rule. 14 extend-select = [ 15 "E", # flake8 16 "F", # Pyflakes 17 "I", # isort 18 "PL" # pylint 19 ] 20 extend-ignore = [ 21 "PLR5501", # collapsible-else-if 22 "PLR0913", # Too many arguments in function definition 23 "PLR0915", # Too many statements 24 "PLR0912", # Too many branches 25 "PLR2004", # Magic value used in comparison 26 "PLR0911", # Too many return statements 27 28 # temporary 29 "PLW3301", # Nested `max` calls can be flattened 30 "PLW2901", # `for` loop variable `item` overwritten by assignment target 31 ] 32 33 [lint.isort] 34 force-single-line = true 35 36 known-first-party = ["evidently"] 37 38 [lint.per-file-ignores] 39 "tests/*" = [ 40 "PLR2004", # Magic value used in comparison 41 # "E501", 42 "PLR0913", # Too many arguments in function definition 43 ]