setup: Move tox.ini to setup.cfg.
This commit is contained in:
		
							parent
							
								
									4cba2b2681
								
							
						
					
					
						commit
						8dbe807efb
					
				
					 2 changed files with 12 additions and 11 deletions
				
			
		
							
								
								
									
										12
									
								
								setup.cfg
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								setup.cfg
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -12,3 +12,15 @@ warn_redundant_casts = True
 | 
			
		|||
warn_return_any = True
 | 
			
		||||
warn_unreachable = True
 | 
			
		||||
warn_unused_configs = True
 | 
			
		||||
 | 
			
		||||
[tox:tox]
 | 
			
		||||
envlist = py36,py37
 | 
			
		||||
 | 
			
		||||
[testenv]
 | 
			
		||||
# Beancount includes type declarations but not the `py.typed` flag file mypy
 | 
			
		||||
# is looking for to know that. Create it ourselves.
 | 
			
		||||
commands_pre = python -c 'import beancount, pathlib; pathlib.Path(beancount.__file__).with_name("py.typed").touch()'
 | 
			
		||||
 | 
			
		||||
commands =
 | 
			
		||||
  ./setup.py test
 | 
			
		||||
  ./setup.py typecheck
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										11
									
								
								tox.ini
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								tox.ini
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,11 +0,0 @@
 | 
			
		|||
[tox]
 | 
			
		||||
envlist = py36,py37
 | 
			
		||||
 | 
			
		||||
[testenv]
 | 
			
		||||
# Beancount includes type declarations but not the `py.typed` flag file mypy
 | 
			
		||||
# is looking for to know that. Create it ourselves.
 | 
			
		||||
commands_pre = python -c 'import beancount, pathlib; pathlib.Path(beancount.__file__).with_name("py.typed").touch()'
 | 
			
		||||
 | 
			
		||||
commands =
 | 
			
		||||
  ./setup.py test
 | 
			
		||||
  ./setup.py typecheck
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue