Return the comment prefix for a file, or None if unsupported.
(path: Path)
| 163 | |
| 164 | |
| 165 | def get_comment_style(path: Path) -> str | None: |
| 166 | """Return the comment prefix for a file, or None if unsupported.""" |
| 167 | if is_dockerfile(path): |
| 168 | return "#" |
| 169 | return COMMENT_STYLES.get(path.suffix) |
| 170 | |
| 171 | |
| 172 | def discover_files(root: Path) -> list[Path]: |
no test coverage detected