From 9a415c6c9ac100baea618b5889906f9202d50514 Mon Sep 17 00:00:00 2001 From: Ian Rokas Date: Tue, 12 Aug 2025 18:42:25 +0000 Subject: [PATCH] fix: updates related to support for Python 3.13 in SOAR 7.0 - 2.0 [batch update] --- .pre-commit-config.yaml | 19 ++++++++++++++----- github.json | 2 +- release_notes/unreleased.md | 1 + 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index be13ef4..fe86072 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,16 +1,20 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks +# By default, run each hook only in the standard pre-commit stage +default_install_hook_types: [pre-commit, commit-msg] +default_stages: [pre-commit] + # This is a template for connector pre-commit hooks repos: - repo: https://github.com/compilerla/conventional-pre-commit - rev: v4.0.0 + rev: v4.1.0 hooks: - id: conventional-pre-commit stages: [commit-msg] args: [--verbose] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v5.0.0 hooks: - id: check-merge-conflict - id: end-of-file-fixer @@ -23,7 +27,7 @@ repos: - id: check-json - id: check-yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.6 + rev: v0.11.7 hooks: - id: ruff args: [ "--fix", "--unsafe-fixes"] # Allow unsafe fixes (ruff pretty strict about what it can fix) @@ -33,13 +37,18 @@ repos: hooks: - id: djlint-reformat-django - id: djlint-django + - repo: https://github.com/phantomcyber/soar-app-linter + rev: 0.1.0 + hooks: + - id: soar-app-linter + args: ["--single-repo", "--message-level", "error"] - repo: https://github.com/hukkin/mdformat rev: 0.7.22 hooks: - id: mdformat exclude: "release_notes/.*" - repo: https://github.com/returntocorp/semgrep - rev: v1.107.0 + rev: v1.89.0 hooks: - id: semgrep - repo: https://github.com/Yelp/detect-secrets @@ -51,7 +60,7 @@ repos: exclude: "README.md" # Central hooks - repo: https://github.com/phantomcyber/dev-cicd-tools - rev: v2.0.0 + rev: v2.0.9 hooks: - id: build-docs language: python diff --git a/github.json b/github.json index 4fbe7fc..2946d14 100644 --- a/github.json +++ b/github.json @@ -11,7 +11,7 @@ "publisher": "Splunk", "license": "Copyright (c) 2019-2025 Splunk Inc.", "app_version": "2.1.1", - "python_version": "3", + "python_version": "3.9, 3.13", "fips_compliant": true, "utctime_updated": "2021-04-28T23:08:45.000000Z", "package_name": "phantom_github", diff --git a/release_notes/unreleased.md b/release_notes/unreleased.md index a8302f2..99011eb 100644 --- a/release_notes/unreleased.md +++ b/release_notes/unreleased.md @@ -2,3 +2,4 @@ * chore(ci): update pre-commit config * Resolved app issues related to Python 3.13 upgrade +* Update Python version for 3.13