mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Closes #22663: patchcheck: only modify text files under Doc/
This commit is contained in:
		
							parent
							
								
									8e120ac05c
								
							
						
					
					
						commit
						24f0717b82
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -152,7 +152,8 @@ def main(): | ||||||
|     file_paths = changed_files() |     file_paths = changed_files() | ||||||
|     python_files = [fn for fn in file_paths if fn.endswith('.py')] |     python_files = [fn for fn in file_paths if fn.endswith('.py')] | ||||||
|     c_files = [fn for fn in file_paths if fn.endswith(('.c', '.h'))] |     c_files = [fn for fn in file_paths if fn.endswith(('.c', '.h'))] | ||||||
|     doc_files = [fn for fn in file_paths if fn.startswith('Doc')] |     doc_files = [fn for fn in file_paths if fn.startswith('Doc') and | ||||||
|  |                  fn.endswith(('.rst', '.inc'))] | ||||||
|     misc_files = {os.path.join('Misc', 'ACKS'), os.path.join('Misc', 'NEWS')}\ |     misc_files = {os.path.join('Misc', 'ACKS'), os.path.join('Misc', 'NEWS')}\ | ||||||
|             & set(file_paths) |             & set(file_paths) | ||||||
|     # PEP 8 whitespace rules enforcement. |     # PEP 8 whitespace rules enforcement. | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl