From: Nicki Křížek Date: Tue, 16 Jun 2026 16:56:05 +0000 (+0200) Subject: Don't run vulture on ansX system test dirs X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72bda8335f56a235f12574a95cb59920ddf6c681;p=thirdparty%2Fbind9.git Don't run vulture on ansX system test dirs Exclude ansX directories from vulture, as splitting up the handlers into multiple files gets flagged as unused code. --- diff --git a/bin/tests/system/COOKBOOK.md b/bin/tests/system/COOKBOOK.md index 4339b5ffe75..e0c71880942 100644 --- a/bin/tests/system/COOKBOOK.md +++ b/bin/tests/system/COOKBOOK.md @@ -226,18 +226,17 @@ server's default rcode (REFUSED unless configured otherwise). When one mock server accrues several unrelated domains — typical for a shared `ansN` in a multi-module family directory — keep each domain's -handler logic in its own module: one `_ans.py` file per domain next -to `ans.py`, with `ans.py` reduced to a loader that imports and installs -each handler (the test directory is on the server's `PYTHONPATH`): +handler logic in its own module next to `ans.py`, with `ans.py` reduced +to a loader that imports and installs each handler: ```python -from mytest.ans4 import broken_example_ans +from mytest.ans4 import broken_example from isctest.asyncserver import AsyncDnsServer def main() -> None: server = AsyncDnsServer() - server.install_response_handler(broken_example_ans.BrokenExampleHandler()) + server.install_response_handler(broken_example.BrokenExampleHandler()) server.run() diff --git a/pyproject.toml b/pyproject.toml index 308c1275685..c9cc80a4dac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,6 +67,7 @@ paths = [ ] exclude = [ "*ans.py", + "*/ans[0-9]*/*", "contrib", "*doc/arm/_ext/*conf.py", "doc/arm/conf.py",