Skip to content
Prev Previous commit
chore(integrations): satisfy CI formatting and licensing
  • Loading branch information
XnLemon committed Aug 22, 2026
commit 09646df9f5a391e0be2f5a22e8a3a9c97c19e6e4
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
#!/usr/bin/env python3
# Copyright (c) 2026 OceanBase.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# ruff: noqa: TRY003

"""Configure the PowerContext memory provider in OpenClaw."""
Expand Down Expand Up @@ -210,11 +224,7 @@ def set_tools_allowlist(executable: str, *, add: bool) -> None:
if tool not in updated:
updated.append(tool)
else:
updated = [
value
for value in current
if not isinstance(value, str) or value not in POWERCONTEXT_TOOLS
]
updated = [value for value in current if not isinstance(value, str) or value not in POWERCONTEXT_TOOLS]
run_command(
[
executable,
Expand Down
5 changes: 1 addition & 4 deletions src/powercontext/cli/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@ def invalid_openclaw_source(cls, source: str) -> SetupError:

@classmethod
def unsupported_openclaw_version(cls, version_text: str) -> SetupError:
return cls(
f"OpenClaw {version_text or 'version unknown'} is unsupported; "
"upgrade to >= 2026.8.1-beta.2"
)
return cls(f"OpenClaw {version_text or 'version unknown'} is unsupported; upgrade to >= 2026.8.1-beta.2")

@classmethod
def invalid_openclaw_scope(cls) -> SetupError:
Expand Down
Loading