+
    O(i                    |    ^ RI Ht ^ RIt^ RIt^ RIt ! R R]4      tR R ltR R ltR	 R
 lt	R R lt
R R ltR# )    )annotationsNc                      ] tR t^tRtR# )RuffNotFound N)__name__
__module____qualname____firstlineno____static_attributes__r       U/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/ruff/_find_ruff.pyr   r      s    sr   r   c                   V ^8  d   QhRR/#    returnstrr   )formats   "r   __annotate__r      s     , ,s ,r   c            	     
   R\         P                  ! R4      ,           p \         P                  ! R4      \         P                  ! RR\        P                  /R7      \        P
                  R8X  d   \        \        \        4       R4      R4      M\        \        \        4       R	4      R
4      \        \        \        4       R4      R
4      \         P                  ! R\        4       R7      .p. pV Fn  pV'       g   K  W29   d   K  VP                  V4       \        P                  P                  W04      p\        P                  P                  V4      '       g   Kl  Vu # 	  RP                  R V 4       4      p\        RV R24      h)zReturn the ruff binary path.ruffEXEscriptsbase)varswin32zLib/site-packages/ruffScriptszlib/python*/site-packages/ruffbin)scheme
c              3  ,   "   T F
  pR V 2x  K  	  R# 5i)z - Nr   ).0targets   & r   	<genexpr> find_ruff_bin.<locals>.<genexpr>4   s     <tVCx.ts   zBCould not find the ruff binary in any of the following locations:
)	sysconfigget_config_varget_pathsysbase_prefixplatform_join_matching_parents_module_path_user_schemeappendospathjoinisfiler   )ruff_exetargetsseenr"   r1   	locationss         r   find_ruff_binr8      s7    	0077H 	9%9FCOO+DE ||w& !,.2JKY
 !,.2RS 	7?9\^<-G2 D>Fww||F-77>>$K  		<t<<I

Mi[XZ[ r   c                   V ^8  d   QhRR/# )r   r   
str | Noner   )r   s   "r   r   r   :   s      j r   c                 L    \         P                  P                  \        4      p V # N)r0   r1   dirname__file__)r1   s    r   r-   r-   :   s    77??8$DKr   c               $    V ^8  d   QhRRRRRR/# )r   r1   r:   matchr   r   r   )r   s   "r   r   r   ?   s!     3 3J 3s 3z 3r   c           	       a ^ RI H o V '       g   R# V P                  \        P                  4      pVP                  R4      p\	        V4      \	        V4      8  d   R# \
        ;QJ d;    V3R l\        \        V4      \        V4      4       4       F  '       d   K   RM0	  RM,! V3R l\        \        V4      \        V4      4       4       4      '       g   R# \        P                  P                  VR\	        V4      )  4      # )a?  
Return the parent directory of `path` after trimming a `match` from the end.
The match is expected to contain `/` as a path separator, while the `path`
is expected to use the platform's path separator (e.g., `os.sep`). The path
components are compared case-insensitively and a `*` wildcard can be used
in the `match`.
)fnmatchN/c              3  8   <"   T F  w  rS! W4      x  K  	  R # 5ir<   r   )r!   part
match_partrB   s   &  r   r#   $_matching_parents.<locals>.<genexpr>P   s#       KD 	!! Ks   FT)	rB   splitr0   seplenallzipreversedr2   )r1   r@   partsmatch_partsrB   s   &&  @r   r,   r,   ?   s      JJrvvE++c"K
5zC$$3  #HUOXk5J K333  #HUOXk5J K   66;;u0K 00122r   c               $    V ^8  d   QhRRRRRR/# )r   r1   r:   rN   r   r   r   )r   s   "r   r   r   Y   s!     & &
 &C &J &r   c                Z    V '       g   R # \         P                  P                  ! V .VO5!  # r<   )r0   r1   r2   )r1   rN   s   &*r   r+   r+   Y   s     77<<%u%%r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   _   s     	 	c 	r   c                     \         P                  R8  d   \        P                  ! R4      p V # \        P
                  R8X  d   Rp V # \         P                  R8X  d   \         P                  '       d   Rp V # Rp V # )   userntnt_userdarwinosx_framework_user
posix_user)rT   
   )r(   version_infor%   get_preferred_schemer0   namer*   
_framework)user_schemes    r   r.   r.   _   sr    
7"44V<  
D
 	 
	!cnnn*  #r   )
__future__r   r0   r(   r%   FileNotFoundErrorr   r8   r-   r,   r+   r.   r   r   r   <module>rc      s6    " 	 
  +$ *,^
34&	r   