feat(audit): flag hardcoded workspace and project-root paths in tests
This commit is contained in:
@@ -20,6 +20,8 @@ PATTERNS = [
|
||||
re.compile(rf'open\(["\'](?:{"|".join(TOML_BASENAMES)})\.toml["\']'),
|
||||
re.compile(rf'["\']\.{{1,2}}/(?:{"|".join(TOML_BASENAMES)})\.toml["\']'),
|
||||
re.compile(rf'Path\(["\']\.\./(?:{"|".join(TOML_BASENAMES)})\.toml["\']'),
|
||||
re.compile(r'Path\(["\']tests/artifacts/'),
|
||||
re.compile(r'Path\(["\']C:[/\\]+projects'),
|
||||
]
|
||||
|
||||
EXCLUDE_DIRS = {"artifacts", "logs", "__pycache__", "snapshots"}
|
||||
|
||||
Reference in New Issue
Block a user