We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce9b74f commit b264384Copy full SHA for b264384
tests/base.py
@@ -26,7 +26,7 @@
26
def load_rules() -> RuleCollection:
27
if CUSTOM_RULES_DIR:
28
rc = RuleCollection()
29
- path = Path(CUSTOM_RULES_DIR)
+ path = Path(CUSTOM_RULES_DIR).expanduser()
30
assert path.exists(), f"Custom rules directory {path} does not exist"
31
rc.load_directories(directories=RULES_CONFIG.rule_dirs)
32
rc.freeze()
@@ -62,7 +62,7 @@ def setUpClass(cls):
62
RULE_LOADER_FAIL = True
63
RULE_LOADER_FAIL_MSG = str(e)
64
65
- cls.custom_dir = Path(CUSTOM_RULES_DIR).resolve() if CUSTOM_RULES_DIR else None
+ cls.custom_dir = Path(CUSTOM_RULES_DIR).expanduser().resolve() if CUSTOM_RULES_DIR else None
66
cls.rules_config = RULES_CONFIG
67
68
@staticmethod
0 commit comments