mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Fix bug in pep8 linter.
Basically pep8 linter was not running on a selected ignore list of files for which an extra pep8 rule e261 was to be ignored.
This commit is contained in:
		@@ -109,7 +109,8 @@ def check_pep8(files):
 | 
			
		||||
    if not len(filtered_files_E261) == 0:
 | 
			
		||||
        # Adding an extra ignore rule for these files since they still remain in
 | 
			
		||||
        # violation of PEP-E261.
 | 
			
		||||
        failed_ignore_e261 = run_pycodestyle(filtered_files_E261, ignored_rules + ['E261'])
 | 
			
		||||
        if not failed:
 | 
			
		||||
            failed = run_pycodestyle(filtered_files_E261, ignored_rules + ['E261'])
 | 
			
		||||
            failed = failed_ignore_e261
 | 
			
		||||
 | 
			
		||||
    return failed
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user