Skip to content

Commit

Permalink
compare paths after .as_posix()
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonvt committed Aug 18, 2023
1 parent 51892dc commit 2b719a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests_unit/test_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def keep(path):
"_pb2.py", # Auto-generated, dislikes changes ;)
"cognite/client/utils/_priority_tpe.py", # Module docstring at the top takes priority
]
return all(skip not in str(path) for skip in skip_list)
return all(skip not in str(path.as_posix()) for skip in skip_list)

all_filepaths = [Path(p) for p in Path("cognite/client/").glob("**/*.py") if keep(p)]
all_filepaths = filter(keep, Path("cognite/client/").glob("**/*.py"))
err_msg = "File: '{}' is missing 'from __future__ import annotations' at line=0"

for filepath in all_filepaths:
Expand Down

0 comments on commit 2b719a9

Please sign in to comment.