mirror of
				https://github.com/mail-in-a-box/mailinabox.git
				synced 2025-11-03 19:30:54 +00:00 
			
		
		
		
	Fixed PGH004 (blanket-noqa): Use a colon when specifying noqa rule codes
				
					
				
			This commit is contained in:
		
							parent
							
								
									9c7e329bd7
								
							
						
					
					
						commit
						f53679d561
					
				@ -678,7 +678,7 @@ def print_user_table(users, data=None, sub_data=None, activity=None, latest=None
 | 
				
			|||||||
                data_accum[col] += d[row]
 | 
					                data_accum[col] += d[row]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            if None not in [latest, earliest]: # noqa PLR6201
 | 
					            if None not in [latest, earliest]: # noqa: PLR6201
 | 
				
			||||||
                vert_pos = len(line)
 | 
					                vert_pos = len(line)
 | 
				
			||||||
                e = earliest[row]
 | 
					                e = earliest[row]
 | 
				
			||||||
                l = latest[row]
 | 
					                l = latest[row]
 | 
				
			||||||
@ -731,7 +731,7 @@ def print_user_table(users, data=None, sub_data=None, activity=None, latest=None
 | 
				
			|||||||
        else:
 | 
					        else:
 | 
				
			||||||
            header += l.rjust(max(5, len(l) + 1, col_widths[col]))
 | 
					            header += l.rjust(max(5, len(l) + 1, col_widths[col]))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if None not in [latest, earliest]: # noqa PLR6201
 | 
					    if None not in [latest, earliest]: # noqa: PLR6201
 | 
				
			||||||
        header += " │ timespan   "
 | 
					        header += " │ timespan   "
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    lines.insert(0, header.rstrip())
 | 
					    lines.insert(0, header.rstrip())
 | 
				
			||||||
@ -756,7 +756,7 @@ def print_user_table(users, data=None, sub_data=None, activity=None, latest=None
 | 
				
			|||||||
        footer += temp.format(data_accum[row])
 | 
					        footer += temp.format(data_accum[row])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        if None not in [latest, earliest]: # noqa PLR6201
 | 
					        if None not in [latest, earliest]: # noqa: PLR6201
 | 
				
			||||||
            max_l = max(latest)
 | 
					            max_l = max(latest)
 | 
				
			||||||
            min_e = min(earliest)
 | 
					            min_e = min(earliest)
 | 
				
			||||||
            timespan = relativedelta(max_l, min_e)
 | 
					            timespan = relativedelta(max_l, min_e)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user