Skip to content

ExtendedFilter

faststream.cli.supervisors.watchfiles.ExtendedFilter #

ExtendedFilter(*, ignore_paths=None, extra_extensions=())

Bases: PythonFilter

A class that extends the watchfiles.PythonFilter class.

Source code in faststream/cli/supervisors/watchfiles.py
def __init__(
    self,
    *,
    ignore_paths: Optional[Sequence[Union[str, Path]]] = None,
    extra_extensions: Sequence[str] = (),
) -> None:
    super().__init__(ignore_paths=ignore_paths, extra_extensions=extra_extensions)
    self.ignore_dirs: Sequence[str] = (
        *self.ignore_dirs,
        "venv",
        "env",
        ".github",
        ".mypy_cache",
        ".pytest_cache",
        ".ruff_cache",
        "__pycache__",
    )

ignore_dirs instance-attribute #

ignore_dirs = (*ignore_dirs, 'venv', 'env', '.github', '.mypy_cache', '.pytest_cache', '.ruff_cache', '__pycache__')