VL i dZddlmZddlZddlZddlmZddlmZddl m Z ddl m Z ejeZ d dZ d d Zy) z'Functions related to discovering paths.) annotationsN) Generator)Sequence)Callable)utilsc#K||rytjj|rtj|D]\}}}t |D]<}tjj ||}||s,|j |>|D]/}tjj ||}||r,|1y|yw)ayGenerate filenames from an argument. :param arg: Parameter from the command-line. :param predicate: Predicate to use to filter out filenames. If the predicate returns ``True`` we will exclude the filename, otherwise we will yield it. By default, we include every filename generated. :returns: Generator of paths N)ospathisdirwalktuplejoinremove)arg predicaterootsub_directoriesfiles directoryjoinedfilenames [/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/flake8/discover_files.py_filenames_fromrs"~ ww}}S,.GGCL ! (D/5#?3 6 dI6V$#**95 6 " !dH5 ( L ! ! sA;C >AC ?C c:|sdg}dfd fd|DS)z.is_excluded?s9 #:!W,$C%% A   c3K|]8}t|D]&}|dk(s||k(stj|r|(:yw))rrN)rrfnmatch).0r rfilename_patternsr&s r zexpand_paths..MsU  ' D   Ox}}X'89   s>A)rstrreturnbool)pathsr%r+r$r&s ```@r expand_pathsr24s&      r')rr-rzCallable[[str], bool]r.Generator[str]) r1 Sequence[str]r%r-r+r4r$r4r.r3)__doc__ __future__rloggingos.pathr collections.abcrrtypingrflake8r getLogger__name__r#rr2r0r'rr>s-"%$g!" "%" "J% %%% %  %  %r'