mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-09-30 11:51:46 +02:00
Merge pull request #349 from msoedov/fix/pre-commit-pyupgrade
fix: ci poetry venv and pre-commit pyupgrade
This commit is contained in:
4 files changed
+3
-2
No files matched your search
@@ -2,6 +2,7 @@ name: Pre-Commit Checks
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
POETRY_VERSION: "2.4.1"
|
POETRY_VERSION: "2.4.1"
|
||||||
|
POETRY_VIRTUALENVS_CREATE: "true"
|
||||||
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ jobs:
|
|||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.14"
|
python-version: "3.14"
|
||||||
cache: "poetry"
|
|
||||||
- name: Build project for distribution
|
- name: Build project for distribution
|
||||||
run: poetry build --format sdist
|
run: poetry build --format sdist
|
||||||
- name: Check Version
|
- name: Check Version
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
POETRY_VERSION: "2.4.1"
|
POETRY_VERSION: "2.4.1"
|
||||||
|
POETRY_VIRTUALENVS_CREATE: "true"
|
||||||
OPENAI_API_KEY: "sk-fake"
|
OPENAI_API_KEY: "sk-fake"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ class HybridRefusalClassifier:
|
|||||||
detector: RefusalDetector,
|
detector: RefusalDetector,
|
||||||
weight: float = 1.0,
|
weight: float = 1.0,
|
||||||
name: str | None = None,
|
name: str | None = None,
|
||||||
) -> "HybridRefusalClassifier":
|
) -> HybridRefusalClassifier:
|
||||||
"""Add a detection method with specified weight.
|
"""Add a detection method with specified weight.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|||||||
Reference in new issue
Block a user