[tool.ruff] target-version = "py311" include = ["priv/python/**/*.py", "test/**/*.py", "pyproject.toml"] [tool.ruff.lint] select = ["E4", "E7", "E9", "F"] [tool.ty.environment] python-version = "3.11" # The tests use Linux-only calls, such as os.pidfd_open, behind a skip. python-platform = "linux" extra-paths = ["priv/python", "test", "test/harness", "test/e2e"] [tool.ty.src] include = ["priv/python", "test"] [tool.ty.analysis] # Optional serializer; the kernel falls back to pickle when it is unavailable. # The export redaction runtime lives in its own site directory # (nix/packages/redactor-site.nix), and onnx only in its fixture generator. allowed-unresolved-imports = [ "dill", "numpy", "onnxruntime", "tokenizers", "onnx", ]