From 789170acc50174089788d92d47eadb27c0b2f257 Mon Sep 17 00:00:00 2001 From: getzze Date: Thu, 13 Feb 2025 12:58:09 +0000 Subject: [PATCH] also apply os.path.abspath when matching the key --- src/doc8/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc8/main.py b/src/doc8/main.py index 4cae8c4..71f9b31 100644 --- a/src/doc8/main.py +++ b/src/doc8/main.py @@ -238,7 +238,7 @@ def validate(cfg, files, result=None): f = files.popleft() if cfg.get("verbose"): print("Validating %s" % f) - targeted_ignoreables = set(ignore_targeted.get(f.filename, set())) + targeted_ignoreables = set(ignore_targeted.get(os.path.abspath(f.filename), set())) targeted_ignoreables.update(ignoreables) for c in fetch_checks(cfg): check_name = ".".join([c.__class__.__module__, c.__class__.__name__])