mirror of
https://github.com/servo/servo.git
synced 2025-10-02 09:39:14 +01:00
As per #39585. >It used to run on our old buildbot CI for a couple years. It was never migrated, and we should clean it up. _Originally posted by @jdm in https://github.com/servo/servo/issues/39585#issuecomment-3351054660_ --------- Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
71 lines
1.4 KiB
TOML
71 lines
1.4 KiB
TOML
[project]
|
|
# `uv` logs warnings if this file doesn't contain a `project` table.
|
|
name = "servo"
|
|
version = "0.0.1"
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
extend-exclude = [
|
|
# temporary local files
|
|
"target/**",
|
|
"__pycache__/**",
|
|
"python/_venv*/**",
|
|
# upstream
|
|
"third_party/**",
|
|
"python/mach/**",
|
|
"components/net/**",
|
|
"components/shared/**",
|
|
"tests/**",
|
|
]
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E",
|
|
"W",
|
|
"F",
|
|
# Type Annotation
|
|
"ANN",
|
|
]
|
|
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",
|
|
# allow Any type
|
|
"ANN401",
|
|
]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"etc/**" = ["ANN"]
|
|
"**/test.py" = ["ANN"]
|
|
"**/*_tests.py" = ["ANN"]
|
|
"**/tests/**/*.py" = ["ANN"]
|
|
|
|
[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",
|
|
]
|
|
|
|
[tool.uv]
|
|
native-tls = true
|