Files
wehub-resource-sync 4b6817381b
Benchmark image — build + push to ECR (any adapter) / build + push (push) Waiting to run
CI / quality (ubuntu-latest) (push) Waiting to run
CI / test (tools-runtime) (push) Waiting to run
CI / test (e2e-general) (push) Waiting to run
CI / test (cli-runtime) (push) Waiting to run
CI / test (e2e-provider-and-openclaw) (push) Waiting to run
CI / test (integrations-and-misc) (push) Waiting to run
CI / coverage-report (push) Blocked by required conditions
CI / test-kubernetes (push) Waiting to run
CI / should-run-thorough (push) Waiting to run
CI / test-thorough (cloudwatch-demo) (push) Blocked by required conditions
CI / test-thorough (flink-ecs) (push) Blocked by required conditions
CI / test-thorough (upstream-lambda) (push) Blocked by required conditions
CI / test-thorough (prefect-ecs-fargate) (push) Blocked by required conditions
CodeQL / Analyze (python) (push) Waiting to run
Release / build-binaries (zip, opensre.exe, onefile, windows-latest, windows-x64) (push) Blocked by required conditions
Release / publish-release (push) Blocked by required conditions
Release / publish-main-release (push) Blocked by required conditions
Release / prepare (push) Waiting to run
Release / verify (push) Blocked by required conditions
Release / build-python-dist (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, macos-15-intel, darwin-x64) (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, macos-latest, darwin-arm64) (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04, linux-x64) (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04-arm, linux-arm64) (push) Blocked by required conditions
Synthetic Deterministic Tests / Synthetic offline (deterministic) (push) Waiting to run
Interactive Shell Live (PR + post-merge) / turn-checks (no-LLM) (push) Waiting to run
Interactive Shell Live (PR + post-merge) / turn-live shard ${{ matrix.shard_index }} (push) Waiting to run
CI (OpenClaw E2E) / openclaw test (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:10:45 +08:00

73 lines
2.3 KiB
TOML

# Ruff configuration
# https://docs.astral.sh/ruff/configuration/
target-version = "py313"
line-length = 100
# Exclude vendored dependencies in Lambda code and build artifacts
exclude = [
"**/certifi*",
"**/charset_normalizer*",
"**/idna*",
"**/requests*",
"**/urllib3*",
"**/bin",
"**/cdk.out/**",
"pytest.ini",
]
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes (includes unused imports, variables)
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"B905", # zip without explicit strict parameter
"SIM108", # use ternary operator instead of if-else
]
# Per-file ignores for legitimate patterns
[lint.per-file-ignores]
# Tests: pytest fixtures/parameters often appear unused — keep ignoring those.
# F401 stays enforced everywhere so unused imports surface in lint (and CI).
"tests/**/*.py" = ["ARG001", "E402"]
# CLI entry points
"surfaces/cli/__main__.py" = ["ARG001"]
# stderr/stdout buffers outlive the function — closed in a watcher thread's `finally`,
# so a `with` block at the call site would close them before the subprocess runs.
"tools/interactive_shell/synthetic/runner.py" = ["SIM115"]
"surfaces/interactive_shell/runtime/subprocess_runner/background_task_executor.py" = ["SIM115"]
# self._fd is opened in __init__ and must remain open for the lifetime of the
# background reader thread (_reader_loop). A with-block would close the fd when
# __init__ exits — before the thread reads anything. The fd is closed in close().
"tools/system/fleet_monitoring/tail.py" = ["SIM115"]
# tools/<vendor>_tools/__init__.py files are concatenations of multiple tool modules.
# Imports appear in each section rather than all at the top (E402).
"tools/*_tools/__init__.py" = ["E402", "F811"]
# Same layout after vendor tools migrate to integrations/<vendor>/tools/.
"integrations/*/tools/__init__.py" = ["E402", "F811"]
[lint.isort]
known-first-party = [
"config",
"core",
"integrations",
"platform",
"surfaces",
"tests",
"tools",
]