mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	Merge pull request #820 from return42/ign-monkey
[test.pyright] suppress warnings about intentional monkey patching
This commit is contained in:
		
						commit
						c110a58a89
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		
							
								
								
									
										8
									
								
								manage
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								manage
									
										
									
									
									
								
							|  | @ -696,11 +696,15 @@ test.pyright() { | |||
|     node.env.devtools | ||||
|     # We run Pyright in the virtual environment because Pyright | ||||
|     # executes "python" to determine the Python version. | ||||
|     pyenv.cmd npx --no-install pyright -p pyrightconfig-ci.json | ||||
|     build_msg TEST "[pyright] suppress warnings related to intentional monkey patching" | ||||
|     pyenv.cmd npx --no-install pyright -p pyrightconfig-ci.json \ | ||||
|         | grep -v ".py$" \ | ||||
|         | grep -v '/engines/.*.py.* - warning: "logger" is not defined'\ | ||||
|         | grep -v '/engines/.*.py.* - warning: "supported_languages" is not defined' \ | ||||
|         | grep -v '/engines/.*.py.* - warning: "language_aliases" is not defined' | ||||
|     dump_return $? | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| test.black() { | ||||
|     build_msg TEST "[black] \$BLACK_TARGETS" | ||||
|     pyenv.cmd black --check --diff "${BLACK_OPTIONS[@]}" "${BLACK_TARGETS[@]}" | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Markus Heiser
						Markus Heiser