From 25735bb314d78947aa0a43377622954f34503366 Mon Sep 17 00:00:00 2001 From: ssrhaso Date: Thu, 2 Apr 2026 10:58:50 +0100 Subject: [PATCH] chore: enable prek compatibility (#434) --- .pre-commit-config.yaml | 7 ++----- docs/source/attacks/report_example_lira.json | 2 +- .../attacks/report_example_worstcase.json | 20 +++++++++---------- pyproject.toml | 1 + 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1d707888..dc33c701 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,11 +29,8 @@ repos: rev: v2.4.2 hooks: - id: codespell - exclude: > - (?x)^( - .*\.svg| - .*\.ipynb - )$ + additional_dependencies: [tomli] + args: ["--toml", "pyproject.toml"] # Ruff, the Python auto-correcting linter/formatter written in Rust - repo: https://github.com/astral-sh/ruff-pre-commit diff --git a/docs/source/attacks/report_example_lira.json b/docs/source/attacks/report_example_lira.json index c623d470..82156148 100644 --- a/docs/source/attacks/report_example_lira.json +++ b/docs/source/attacks/report_example_lira.json @@ -485,7 +485,7 @@ 1.0 ], "roc_thresh": [ - Infinity, + null, 1.0, 0.9997295737148277, 0.9996517559988691, diff --git a/docs/source/attacks/report_example_worstcase.json b/docs/source/attacks/report_example_worstcase.json index 450f70f2..bef2dc99 100644 --- a/docs/source/attacks/report_example_worstcase.json +++ b/docs/source/attacks/report_example_worstcase.json @@ -141,7 +141,7 @@ 1.0 ], "roc_thresh": [ - Infinity, + null, 0.825851798523959, 0.8218557850396795, 0.8104747175329332, @@ -261,7 +261,7 @@ 1.0 ], "roc_thresh": [ - Infinity, + null, 0.8513212822109211, 0.8304469787143121, 0.8084817214429054, @@ -380,7 +380,7 @@ 1.0 ], "roc_thresh": [ - Infinity, + null, 0.8202899572689847, 0.8172998168513756, 0.7887314516909629, @@ -492,7 +492,7 @@ 1.0 ], "roc_thresh": [ - Infinity, + null, 0.8055012041737802, 0.765249795558943, 0.7640488764917515, @@ -598,7 +598,7 @@ 1.0 ], "roc_thresh": [ - Infinity, + null, 0.8434638635738719, 0.8269245445997703, 0.823121311025639, @@ -700,7 +700,7 @@ 1.0 ], "roc_thresh": [ - Infinity, + null, 0.8261715153209457, 0.8218861877979522, 0.8198406461227399, @@ -813,7 +813,7 @@ 1.0 ], "roc_thresh": [ - Infinity, + null, 0.9097858406012286, 0.9035828821639248, 0.901809083934956, @@ -926,7 +926,7 @@ 1.0 ], "roc_thresh": [ - Infinity, + null, 0.8771667228069415, 0.8598245489544017, 0.8441576576870246, @@ -1042,7 +1042,7 @@ 1.0 ], "roc_thresh": [ - Infinity, + null, 0.8205138082234891, 0.7982093484334317, 0.790949774988966, @@ -1157,7 +1157,7 @@ 1.0 ], "roc_thresh": [ - Infinity, + null, 0.7783395039054761, 0.7761026618002128, 0.76706011235259, diff --git a/pyproject.toml b/pyproject.toml index aca58029..a8ea0a94 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -173,6 +173,7 @@ docstring-code-line-length = 80 [tool.codespell] +skip = "*.svg,*.ipynb" ignore-words-list = [ "SOM", "fpr",