diff options
Diffstat (limited to 'ruff.toml')
-rw-r--r-- | ruff.toml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 00000000000..2bc8ee0f250 --- /dev/null +++ b/ruff.toml @@ -0,0 +1,27 @@ +line-length = 120 + +extend-exclude = [ + # temporary local files + "target/**", + "__pycache__/**", + "python/_venv*/**", + # upstream + "third_party/**", + "python/mach/**", + "components/**", + "tests/**", +] + +[lint] +select = [ + "E", + "W", + "F", +] + +ignore = [ + # Trailing whitespace; the standard tidy process will enforce no trailing whitespace + "W291", + # 80 character line length; the standard tidy process will enforce line length + "E501", +] |