(repo, path)
| 66 | |
| 67 | |
| 68 | def check_dvcfile_path(repo, path): |
| 69 | if not is_valid_filename(path): |
| 70 | raise StageFileBadNameError( |
| 71 | f"bad DVC file name '{relpath(path)}'. DVC files should be named " |
| 72 | f"'{PROJECT_FILE}' or have a '.dvc' suffix " |
| 73 | f"(e.g. '{os.path.basename(path)}.dvc')." |
| 74 | ) |
| 75 | |
| 76 | if is_git_ignored(repo, path): |
| 77 | raise FileIsGitIgnored(relpath(path), True) |
| 78 | |
| 79 | |
| 80 | class FileMixin: |
no test coverage detected