Loading...
SciTeX dotfiles

Ask anything about Scientific Research

Console
Ask anything about Scientific Research. I can take actions: stats, plots, literature, and your current work.
Files visitor-008/dotfiles
Viewer Viewer
No file selected Open a file from the Files tab to view it here
No commits yet
Not committed History
Blame
_validator.py • 765 bytes
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File: src/scitex_writer/_compile/_validator.py

"""
Pre-compile validation for writer projects.

Validates project structure before attempting compilation.
"""

from __future__ import annotations

from logging import getLogger
from pathlib import Path

from .._utils._verify_tree_structure import verify_tree_structure

logger = getLogger(__name__)


def validate_before_compile(project_dir: Path) -> None:
    """
    Validate project structure before compilation.

    Parameters
    ----------
    project_dir : Path
        Path to project directory

    Raises
    ------
    RuntimeError
        If validation fails
    """
    verify_tree_structure(project_dir)


__all__ = ["validate_before_compile"]

# EOF