We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec5f0da commit 7e96bc2Copy full SHA for 7e96bc2
1 file changed
codelimit/commands/check.py
@@ -24,7 +24,10 @@ def check_command(paths: list[Path], quiet: bool):
24
dirs[:] = [d for d in dirs if not d[0] == "."]
25
for file in files:
26
abs_path = Path(os.path.join(root, file))
27
- rel_path = abs_path.relative_to(Path.cwd())
+ if abs_path.is_relative_to(Path.cwd()):
28
+ rel_path = abs_path.relative_to(Path.cwd())
29
+ else:
30
+ rel_path = abs_path
31
if is_excluded(rel_path, excludes_spec):
32
continue
33
check_file(abs_path, check_result)
0 commit comments