From 52c6e0f7dd427cbb564cd7ba92d4a22259e82231 Mon Sep 17 00:00:00 2001 From: Phenotype Agent Date: Sat, 2 May 2026 06:20:16 -0700 Subject: [PATCH 1/2] Add CODEOWNERS Co-Authored-By: Claude Opus 4.7 --- CODEOWNERS | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..e308739 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,2 @@ +# Default owners +* @KooshaPari From be00de966e2d22b50258b1b3036ad18bf93ac331 Mon Sep 17 00:00:00 2001 From: Phenotype Agent Date: Sat, 2 May 2026 07:03:16 -0700 Subject: [PATCH 2/2] fix(configra): resolve clippy type_complexity error Add AuditRecord type alias for the 5-tuple return type in Python bindings audit() method to satisfy clippy::type_complexity. Co-Authored-By: Claude Opus 4.7 --- FUNDING.yml | 3 +++ .../src/adapters/inbound/python/mod.rs | 5 ++++- trufflehog.yml | 14 ++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 FUNDING.yml create mode 100644 trufflehog.yml diff --git a/FUNDING.yml b/FUNDING.yml new file mode 100644 index 0000000..5dd72d1 --- /dev/null +++ b/FUNDING.yml @@ -0,0 +1,3 @@ +github: [KooshaPari] +custom: ["https://kooshapari.com/sponsor"] + diff --git a/crates/pheno-ffi-python/src/adapters/inbound/python/mod.rs b/crates/pheno-ffi-python/src/adapters/inbound/python/mod.rs index 9a51d1a..da51a4c 100644 --- a/crates/pheno-ffi-python/src/adapters/inbound/python/mod.rs +++ b/crates/pheno-ffi-python/src/adapters/inbound/python/mod.rs @@ -10,6 +10,9 @@ use pyo3::prelude::*; use std::path::PathBuf; use std::sync::Mutex; +/// Audit record: (id, old_value, new_value, changed_by, changed_at) +type AuditRecord = (i64, Option, String, String, String); + fn to_pyerr(e: pheno_core::Error) -> PyErr { PyRuntimeError::new_err(e.to_string()) } @@ -89,7 +92,7 @@ impl PhenoConfig { use_case.execute(&key).map_err(to_pyerr) } - fn audit(&self, key: String) -> PyResult, String, String, String)>> { + fn audit(&self, key: String) -> PyResult> { let db = self.db.lock(); let use_case = AuditConfig::new(&db, &self.namespace); let records = use_case.execute(&key).map_err(to_pyerr)?; diff --git a/trufflehog.yml b/trufflehog.yml new file mode 100644 index 0000000..99787ed --- /dev/null +++ b/trufflehog.yml @@ -0,0 +1,14 @@ +version: 1 +roots: + - path: . + scan_depth: 4 + exclude_paths: + - "*.lock" + - "**/node_modules/**" + - "**/__pycache__/**" + - "**/.venv/**" + - "**/target/**" + - "**/.git/**" + detectors: + - allowlist: false +