Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/build-argus-redact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
CIBW_TEST_SOURCES: tests README.md README.zh.md docs
# Deselected: source-lint tests that read src/, crates/, pyproject.toml or demo/
# from the checkout (upstream runs them editable), and x86-tuned wall-clock ceilings.
# Newer tags renamed these tests (test_x_matches_y -> test_x_should_match_y); both spellings are listed.
CIBW_TEST_COMMAND: >-
python -c "from argus_redact import redact; redacted, key = redact('张三的电话是13812345678', names=['张三'], lang='zh', salt=42); assert '张三' not in redacted; assert '13812345678' not in redacted" &&
python -m pytest -v -m "not ner and not semantic and not slow"
Expand Down Expand Up @@ -121,6 +122,41 @@ jobs:
--deselect tests/core/test_restore.py::TestRestoreKeyFileLoadIsGlueOnly::test_pure_restore_module_is_filesystem_free
--deselect tests/integration/test_session_isolation.py::test_langchain_no_dead_contextvar_code
--deselect tests/safety/test_hardening.py::test_server_bearer_uses_compare_digest
--deselect tests/architecture/test_carry_window_parity.py::test_carry_window_constant_should_match_between_python_and_rust
--deselect tests/architecture/test_confusables_parity.py::test_ron_entry_count_should_match_expected_frozen_count
--deselect tests/architecture/test_confusables_parity.py::test_ron_sha256_should_match_expected_frozen_hash
--deselect tests/architecture/test_confusables_parity.py::test_ron_should_match_live_generator_output
--deselect tests/architecture/test_core_loader.py::test_consumers_should_not_import_core_at_module_level
--deselect tests/architecture/test_declared_dependencies.py::test_every_runtime_import_should_be_declared_or_allowlisted
--deselect tests/architecture/test_default_max_buffer_parity.py::test_default_max_buffer_should_match_between_python_and_rust
--deselect tests/architecture/test_lang_claims_parity.py::test_documented_pack_count_should_match_the_registry
--deselect tests/architecture/test_layer_purity.py::test_pure_dir_should_have_python_files
--deselect tests/architecture/test_layering.py::test_pure_hints_module_should_not_reference_os_environ
--deselect tests/architecture/test_layers_ssot.py::test_glue_redact_should_use_layer_constants_not_literals
--deselect tests/architecture/test_max_input_size_parity.py::test_max_input_size_constant_should_match_between_python_and_rust
--deselect tests/architecture/test_no_orphan_core_bindings.py::test_every_registered_core_binding_should_have_a_consumer
--deselect tests/architecture/test_pem_ceiling_parity.py::test_glue_cut_path_should_pass_one_effective_max_buffer_to_both_cuts
--deselect tests/architecture/test_pem_ceiling_parity.py::test_glue_should_append_jwt_span_from_binding_and_drop_local_pem_extra
--deselect tests/architecture/test_pem_ceiling_parity.py::test_pem_opener_ceiling_extra_should_match_between_python_and_rust
--deselect tests/architecture/test_post_merge_coverage_invariant.py::test_every_post_merge_pipeline_should_restore_lost_coverage
--deselect tests/architecture/test_post_merge_coverage_invariant.py::test_pseudonym_llm_should_delegate_instead_of_copying_the_pipeline
--deselect tests/architecture/test_post_merge_coverage_invariant.py::test_rust_faces_should_route_through_the_finalize_chokepoint
--deselect tests/architecture/test_risk_data_parity.py::test_risk_data_ron_should_match_frozen_sha256
--deselect tests/architecture/test_risk_data_parity.py::test_risk_data_ron_should_match_frozen_type_count
--deselect tests/architecture/test_risk_data_parity.py::test_risk_data_ron_should_match_live_registry
--deselect tests/architecture/test_shared_ron_registry_coverage.py::test_every_shared_ron_type_should_have_a_registry_row
--deselect tests/architecture/test_strategy_kind_leaf.py::test_leaf_module_should_exist
--deselect tests/architecture/test_strategy_kind_leaf.py::test_leaf_should_have_no_argus_imports
--deselect tests/architecture/test_strategy_kind_leaf.py::test_leaf_should_import_neither_registry_nor_replacer
--deselect tests/architecture/test_strategy_kind_leaf.py::test_registry_should_have_no_lazy_strategy_reversible_import
--deselect tests/architecture/test_strategy_kind_leaf.py::test_replacer_classification_should_come_from_leaf_top_level
--deselect tests/architecture/test_version_parity.py::test_py_crate_should_pin_the_current_core_version
--deselect tests/architecture/test_version_parity.py::test_pyproject_cargo_and_package_versions_should_agree
--deselect tests/core/test_restore.py::TestRestoreKeyFileLoadIsGlueOnly::test_pure_restore_module_should_be_filesystem_free
--deselect tests/docs/test_streaming_jwt_ceiling_docs.py::test_docs_should_replace_the_wide_closed_glued_ceiling_sentence
--deselect tests/docs/test_streaming_jwt_ceiling_docs.py::test_docs_should_retract_the_v0_8_20_charset_glued_claim
--deselect tests/integration/test_session_isolation.py::test_langchain_source_should_not_contain_dead_contextvar_code
--deselect tests/safety/test_hardening.py::test_server_bearer_auth_should_use_constant_time_comparison
--deselect tests/benchmark/test_performance.py::TestRegexPerformance::test_should_redact_short_text_under_1ms
--deselect tests/benchmark/test_performance.py::TestRegexPerformance::test_should_redact_medium_text_under_5ms
--deselect tests/benchmark/test_performance.py::TestThroughput::test_should_process_1000_short_docs_under_1s
Expand Down
6 changes: 6 additions & 0 deletions docs/packages/argus-redact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ source-code: https://github.com/wan9yu/argus-redact
license: Apache-2.0
versions:
- version: 0.8.16
- version: 0.8.17
- version: 0.8.18
- version: 0.8.19
- version: 0.8.20
- version: 0.8.21
- version: 0.8.22
Loading