2017-10-23 14:57:46 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# -*- conf -*-
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# flake8 settings for Spack package files.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# This should include all the same exceptions that we use for core files.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# In Spack packages, we also allow the single `from spack import *`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# wildcard import and dependencies can set globals for their
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# dependents. So we add exceptions for checks related to undefined names.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#
							 | 
						
					
						
							
								
									
										
										
										
											2019-01-21 05:35:11 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# Note that we also add *per-line* exemptions for certain patterns in the
							 | 
						
					
						
							
								
									
										
										
										
											2017-10-23 14:57:46 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# `spack flake8` command.  This is where F403 for `from spack import *`
							 | 
						
					
						
							
								
									
										
										
										
											2020-04-01 11:02:26 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# is added (because we *only* allow that wildcard).
							 | 
						
					
						
							
								
									
										
										
										
											2017-10-23 14:57:46 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# See .flake8 for regular exceptions.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#
							 | 
						
					
						
							
								
									
										
										
										
											2019-01-21 05:35:11 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# F4: Import
							 | 
						
					
						
							
								
									
										
										
										
											2017-10-23 14:57:46 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# - F405: `name` may be undefined, or undefined from star imports: `module`
							 | 
						
					
						
							
								
									
										
										
										
											2019-01-21 05:35:11 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# F8: Name
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# - F821: undefined name `name`
							 | 
						
					
						
							
								
									
										
										
										
											2017-10-23 14:57:46 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[flake8]
							 | 
						
					
						
							
								
									
										
										
										
											2019-05-16 09:47:02 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								ignore = E129,E221,E241,E272,E731,W503,W504,F405,F821,F999,N801,N813,N814
							 | 
						
					
						
							
								
									
										
										
										
											2017-10-23 14:57:46 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								max-line-length = 79
							 |