Skip to content

Commit d263089

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e31fe62 commit d263089

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

.github/instructions/aikido_rules.instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ description: Aikido MCP Security Rules
1010
- If the scan identifies any security issues in newly generated or modified code, fix the issues using the scan result and remediation provided by **Aikido**.
1111
- After applying fixes, run aikido_full_scan again to verify that the issues were successfully resolved, and no new issues were introduced.
1212
- Repeat the fix-and-rescan cycle until the code passes with zero remaining or newly introduced security issues.
13-
- If the **Aikido MCP server** required to run scans is not installed or not started successfully, inform the user with a message directing them to install it using the official Aikido MCP setup guide at:
14-
**https://help.aikido.dev/ide-plugins/aikido-mcp**.
13+
- If the **Aikido MCP server** required to run scans is not installed or not started successfully, inform the user with a message directing them to install it using the official Aikido MCP setup guide at:
14+
**https://help.aikido.dev/ide-plugins/aikido-mcp**.

cron_code/tar_wrapping_checksum.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@
5757
else:
5858
parent_path = LOCAL_PATH.split("/automation")[0]
5959
AUTOINGEST = os.path.join(parent_path, os.environ["AUTOINGEST_STORE"])
60-
LOG = os.path.join(os.environ.get("LOG_PATH"), f"tar_wrapping_checksum_{LOCAL_PATH.replace('/', '_')}.log")
60+
LOG = os.path.join(
61+
os.environ.get("LOG_PATH"),
62+
f"tar_wrapping_checksum_{LOCAL_PATH.replace('/', '_')}.log",
63+
)
6164
CID_API = utils.get_current_api()
6265

6366
# Logging config
@@ -139,7 +142,13 @@ def get_tar_checksums(tar_path, folder):
139142
continue
140143

141144
pth, fname = os.path.split(item_name)
142-
if fname in ["ASSETMAP", "VOLINDEX", "ASSETMAP.xml", "VOLINDEX.xml", "README.txt"]:
145+
if fname in [
146+
"ASSETMAP",
147+
"VOLINDEX",
148+
"ASSETMAP.xml",
149+
"VOLINDEX.xml",
150+
"README.txt",
151+
]:
143152
folder_prefix = os.path.basename(pth)
144153
fname = f"{folder_prefix}_{fname}"
145154
print(item_name, fname, item)

cron_code/unwrap_tar_checksum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def python_tarfile(fpath, untar_fpath):
8989

9090
if "automation/unwrap_tar" in fpath:
9191
tar_file = tarfile.open(fpath)
92-
tar_file.extractall(untar_fpath, filter='data')
92+
tar_file.extractall(untar_fpath, filter="data")
9393
tar_file.close()
9494

9595
if os.listdir(untar_fpath):

0 commit comments

Comments
 (0)