class documentation

class IgnoreFilterStack:

Constructor: IgnoreFilterStack(filters)

View In Hierarchy

Check for ignore status in multiple filters.

Method __init__ Initialize an IgnoreFilterStack with multiple filters.
Method __repr__ Return a string representation of the IgnoreFilterStack.
Method is_ignored Check whether a path is explicitly included or excluded in ignores.
Instance Variable _filters Undocumented
def __init__(self, filters: list[IgnoreFilter]):

Initialize an IgnoreFilterStack with multiple filters.

Parameters
filters:list[IgnoreFilter]A list of IgnoreFilter objects to check in order.
def __repr__(self) -> str:

Return a string representation of the IgnoreFilterStack.

Returns
strA string representation for debugging.
def is_ignored(self, path: str) -> bool | None:

Check whether a path is explicitly included or excluded in ignores.

Parameters
path:strPath to check
Returns
bool | NoneNone if the file is not mentioned, True if it is included, False if it is explicitly excluded.
_filters =

Undocumented