profiles.get_profile

profiles.get_profile(name, package_path=None)

Get a profile by name.

Checks profiles in this order: 1. Built-in profiles (strict, relaxed, ci, release) 2. Plugin profiles (via entry points) 3. Custom profiles from pyproject.toml (if package_path provided) 4. Local profiles from .pycmdcheck/profiles/ (if package_path provided)

Args: name: The profile name (e.g., “strict”, “relaxed”, “ci”, “release”) package_path: Optional path to the package for loading custom/local profiles

Returns: The Profile object if found, None otherwise.