Skip to content

Commit

Permalink
also apply os.path.abspath when matching the key
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed Feb 13, 2025
1 parent d66cb70 commit 789170a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc8/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__])
Expand Down

0 comments on commit 789170a

Please sign in to comment.