--- title: "[bojemoi] chore(lint): ruff auto-fix across all Python files" date: 2026-06-30T15:29:52+02:00 draft: false tags: ["commit", "bojemoi", "main"] categories: ["Git Activity"] summary: "Commit 904a659 par grafana-watcher dans bojemoi" author: "grafana-watcher" --- ## Commit `904a659` | | | |---|---| | **Repository** | bojemoi | | **Branch** | `main` | | **Author** | grafana-watcher | | **Hash** | `904a6598fe419819e2ad8aaa02c8733b74ed7d19` | ### Description - Remove trailing whitespace (W291/W293) — 1489 occurrences - Remove unused imports (F401) — 94 occurrences - Remove f-string without placeholders (F541) — 35 occurrences - Add __all__ to bojemoi-mitre-attack mappings/__init__.py (×3 copies) - Prefix unused variables with _ (F841) - Fix bare except → except Exception: (E722) - Split semicolon statements (E702) - Fix ambiguous variable name l → line (E741) - Move misplaced import to top (E402) - Fix undefined name log in nuclei_api (F821) - Excludes E501 (line too long) and binary/corrupt files Co-Authored-By: Claude Sonnet 4.6 ### Files Changed ``` M .claude/agent-memory/infra-daily-monitor/MEMORY.md M .claude/agent-memory/pipeline/MEMORY.md M arch-reviewer/arch_reviewer.py M bojemoi-mitre-attack/bojemoi_mitre_attack/mappings/__init__.py M discord/cleanup.py M discord/populate.py M discord/post_architecture.py M discord/post_blueteam.py M discord/post_infra_channels.py M discord/post_intel_channels.py M dozor/dozor/config.py M karacho/blockchain_postgres_api-1.py M karacho/blockchain_postgres_api.py M karacho/blockchain_service.py M karacho/client_api.py M koursk-1/metrics_exporter.py M koursk-2/modules/bojemoi.py M koursk-2/scripts/list_rsync_slave.py M koursk-2/scripts/listrsyncslave.py M koursk-2/scripts/rsync-master.py M mcp-server/tools/metasploit.py M mcp-server/tools/nmap.py M medved/honeypot/protocols/http_handler.py M medved/honeypot/protocols/rdp_handler.py M oblast-1/zap_scanner.py M provisioning/orchestrator/alembic/env.py M provisioning/orchestrator/app/auth/dependencies.py M provisioning/orchestrator/app/main.py M provisioning/orchestrator/app/metrics.py M provisioning/orchestrator/app/middleware/ip_validation.py M provisioning/orchestrator/app/middleware/metrics.py M provisioning/orchestrator/app/services/cloudinit_gen.py M provisioning/orchestrator/app/services/docker_client.py M provisioning/orchestrator/app/services/gitea_client.py M provisioning/orchestrator/app/services/local_template_client.py M provisioning/orchestrator/app/services/xenserver_client.py M provisioning/orchestrator/app/services/xenserver_client_real.py M provisioning/orchestrator/app/test_all_services.py M provisioning/orchestrator/app/test_xenserver.py M ptaas-init/init.py M recon/pipeline.py M samsonov/bojemoi-mitre-attack/bojemoi_mitre_attack/mappings/__init__.py M samsonov/nuclei_api/main.py M samsonov/pentest_orchestrator/import_results.py M samsonov/pentest_orchestrator/plugins/base.py M samsonov/pentest_orchestrator/plugins/plugin_masscan.py M samsonov/pentest_orchestrator/plugins/plugin_metasploit.py M samsonov/pentest_orchestrator/plugins/plugin_nuclei.py M samsonov/pentest_orchestrator/plugins/plugin_vulnx.py M samsonov/pentest_orchestrator/plugins/plugin_zap.py M samsonov/scripts/metrics_exporter.py M samsonov/scripts/pentest_orchestrator.py M scripts/check_image.py M scripts/clean_image.py M scripts/examples_usage.py M scripts/images_cross_build.py M scripts/metasploitable2_exploit.py M scripts/sync_registry.py M scripts/tannenberg.py M sentinel/collector/collector.py M stack/55-service-sentinel.yml M suricata-attack-enricher/bojemoi-mitre-attack/bojemoi_mitre_attack/mappings/__init__.py M suricata-attack-enricher/enricher.py M tsushima/masscan_msf_script.py M tsushima/vpn_masscan_pipeline.py M vigie/vigie/main.py ``` ### Diff Summary ``` .claude/agent-memory/infra-daily-monitor/MEMORY.md | 261 ++++--------- .claude/agent-memory/pipeline/MEMORY.md | 34 +- arch-reviewer/arch_reviewer.py | 4 +- .../bojemoi_mitre_attack/mappings/__init__.py | 9 + discord/cleanup.py | 4 +- discord/populate.py | 5 +- discord/post_architecture.py | 6 +- discord/post_blueteam.py | 4 +- discord/post_infra_channels.py | 4 +- discord/post_intel_channels.py | 4 +- dozor/dozor/config.py | 1 - karacho/blockchain_postgres_api-1.py | 429 ++++++++++----------- karacho/blockchain_postgres_api.py | 259 ++++++------- karacho/blockchain_service.py | 103 +++-- karacho/client_api.py | 159 ++++---- koursk-1/metrics_exporter.py | 41 +- koursk-2/modules/bojemoi.py | 92 ++--- koursk-2/scripts/list_rsync_slave.py | 67 ++-- koursk-2/scripts/listrsyncslave.py | 30 +- koursk-2/scripts/rsync-master.py | 108 +++--- mcp-server/tools/metasploit.py | 1 - mcp-server/tools/nmap.py | 1 - medved/honeypot/protocols/http_handler.py | 3 +- medved/honeypot/protocols/rdp_handler.py | 1 - oblast-1/zap_scanner.py | 2 - provisioning/orchestrator/alembic/env.py | 2 +- provisioning/orchestrator/app/auth/dependencies.py | 2 +- provisioning/orchestrator/app/main.py | 4 +- provisioning/orchestrator/app/metrics.py | 3 +- .../orchestrator/app/middleware/ip_validation.py | 2 +- .../orchestrator/app/middleware/metrics.py | 2 +- .../orchestrator/app/services/cloudinit_gen.py | 42 +- .../orchestrator/app/services/docker_client.py | 66 ++-- .../orchestrator/app/services/gitea_client.py | 5 +- .../app/services/local_template_client.py | 1 - .../orchestrator/app/services/xenserver_client.py | 61 ++- .../app/services/xenserver_client_real.py | 10 +- provisioning/orchestrator/app/test_all_services.py | 79 ++-- provisioning/orchestrator/app/test_xenserver.py | 19 +- ptaas-init/init.py | 8 +- recon/pipeline.py | 3 +- .../bojemoi_mitre_attack/mappings/__init__.py | 9 + samsonov/nuclei_api/main.py | 6 +- samsonov/pentest_orchestrator/import_results.py | 2 +- samsonov/pentest_orchestrator/plugins/base.py | 1 - .../pentest_orchestrator/plugins/plugin_masscan.py | 72 ++-- .../plugins/plugin_metasploit.py | 123 +++--- .../pentest_orchestrator/plugins/plugin_nuclei.py | 10 +- .../pentest_orchestrator/plugins/plugin_vulnx.py | 3 +- .../pentest_orchestrator/plugins/plugin_zap.py | 68 ++-- samsonov/scripts/metrics_exporter.py | 6 +- samsonov/scripts/pentest_orchestrator.py | 88 ++--- scripts/check_image.py | 90 ++--- scripts/clean_image.py | 34 +- scripts/examples_usage.py | 69 ++-- scripts/images_cross_build.py | 85 ++-- scripts/metasploitable2_exploit.py | 1 - scripts/sync_registry.py | 79 ++-- scripts/tannenberg.py | 34 +- sentinel/collector/collector.py | 8 +- stack/55-service-sentinel.yml | 2 +- .../bojemoi_mitre_attack/mappings/__init__.py | 9 + suricata-attack-enricher/enricher.py | 1 - tsushima/masscan_msf_script.py | 227 ++++++----- tsushima/vpn_masscan_pipeline.py | 331 ++++++++-------- vigie/vigie/main.py | 1 - 66 files changed, 1597 insertions(+), 1703 deletions(-) ```