[tool.ruff] line-length = 120 extend-exclude = [ # temporary local files "target/**", "__pycache__/**", "python/_venv*/**", # upstream "third_party/**", "python/mach/**", "components/**", "tests/**", ] [tool.ruff.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", ] [tool.pyrefly] search-path = [ "python", "tests/wpt/tests", "tests/wpt/tests/tools", "tests/wpt/tests/tools/wptrunner", "tests/wpt/tests/tools/wptserve", "python/mach", "python/wpt", "third_party/WebIDL", "components/script_bindings/codegen", ] project-includes = [ "python/**/*.py", "components/script_bindings", ] project-excludes = [ "**/venv/**", "**/.venv/**", "tests/wpt/tests/**", "**/test.py", "**/*_tests.py", "**/tests/**", "python/mach/**/*.py", "python/servo/mutation/**/*.py", ]