configure mypy outside of pre-commit environment (#25892)
	
		
	
				
					
				
			* add mypy config matching precommit
* use local mypy, add files to config
* excludes too
* fix config
* pylint is sad now... did it get updated?
* fix typing hints
* ignore
* this should be a regexp
* mypy doesn't like Deque despite inheriting MutableSequence
* more excludes
* Revert "pylint is sad now... did it get updated?"
This reverts commit 250c632f18ecb3d33ffb931e15425f9314a0964b.
old-commit-hash: 4e310b807f
			
			
				vw-mqb-aeb
			
			
		
							parent
							
								
									8a828af454
								
							
						
					
					
						commit
						23a4e66b17
					
				
				 8 changed files with 29 additions and 20 deletions
			
			
		@ -1,3 +1,3 @@ | 
				
			|||||||
version https://git-lfs.github.com/spec/v1 | 
					version https://git-lfs.github.com/spec/v1 | 
				
			||||||
oid sha256:5fea746328dc90e4e1542a334508feda0616b2d19d7904f33a3ecfff2b1a6f79 | 
					oid sha256:67078d38037d44571e909dee2288c4fe9f7a1cc3691fe3165c1628ff3d19cde6 | 
				
			||||||
size 1621 | 
					size 1736 | 
				
			||||||
 | 
				
			|||||||
@ -1,3 +1,3 @@ | 
				
			|||||||
version https://git-lfs.github.com/spec/v1 | 
					version https://git-lfs.github.com/spec/v1 | 
				
			||||||
oid sha256:7d093d32dfcaf18972f9c62a0b87dc470ee0d74304ca8d659fc142ee0176b7c5 | 
					oid sha256:848091d4b13abe8c0c97c997fc8641953e1685582560a45841bac625eb0991b4 | 
				
			||||||
size 188750 | 
					size 205318 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,16 @@ | 
				
			|||||||
[mypy] | 
					[mypy] | 
				
			||||||
python_version = 3.8 | 
					python_version = 3.8 | 
				
			||||||
ignore_missing_imports = True | 
					 | 
				
			||||||
plugins = numpy.typing.mypy_plugin | 
					plugins = numpy.typing.mypy_plugin | 
				
			||||||
 | 
					files = body, common, docs, scripts, selfdrive, site_scons, system, tools | 
				
			||||||
 | 
					exclude = ^(pyextra/)|(cereal/)|(opendbc/)|(panda/)|(laika/)|(laika_repo/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(xx/) | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; third-party packages | 
				
			||||||
 | 
					ignore_missing_imports = True | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; helpful warnings | 
				
			||||||
 | 
					warn_redundant_casts = True | 
				
			||||||
 | 
					warn_unreachable = True | 
				
			||||||
 | 
					warn_unused_ignores = True | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; restrict dynamic typing | 
				
			||||||
 | 
					warn_return_any = True | 
				
			||||||
 | 
				
			|||||||
					Loading…
					
					
				
		Reference in new issue