def get_styles_in_dir(dir):
    """
    Input: directory path
    Output: set of matplotlib styles filenames (without trailing '.mplstyle')
    """
    styles_paths = Path(dir).glob("*.mplstyle")
    return set(fn.stem for fn in styles_paths)
Input: directory path
Output: set of matplotlib styles filenames (without trailing '.mplstyle')
scienceplots/tests/conftest.py