lint: fix pydocstyle
This commit is contained in:
		
					parent
					
						
							
								6aaac9149d
							
						
					
				
			
			
				commit
				
					
						2b7b79971d
					
				
			
		
					 3 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
					@ -22,6 +22,8 @@ repos:
 | 
				
			||||||
    rev: 6.1.1
 | 
					    rev: 6.1.1
 | 
				
			||||||
    hooks:
 | 
					    hooks:
 | 
				
			||||||
    -   id: pydocstyle
 | 
					    -   id: pydocstyle
 | 
				
			||||||
 | 
					        args:
 | 
				
			||||||
 | 
					        - --ignore=D200,D212
 | 
				
			||||||
-   repo: https://github.com/PyCQA/flake8
 | 
					-   repo: https://github.com/PyCQA/flake8
 | 
				
			||||||
    rev: 3.9.2
 | 
					    rev: 3.9.2
 | 
				
			||||||
    hooks:
 | 
					    hooks:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -21,7 +21,7 @@ pydocstyle = "^6.1.1"
 | 
				
			||||||
flake8 = "^3.9.2"
 | 
					flake8 = "^3.9.2"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[tool.pydocstyle]
 | 
					[tool.pydocstyle]
 | 
				
			||||||
ignore = ["D203", "D204", "D212"]
 | 
					ignore = ["D200", "D203", "D204", "D212"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[build-system]
 | 
					[build-system]
 | 
				
			||||||
requires = ["poetry-core>=1.0.0"]
 | 
					requires = ["poetry-core>=1.0.0"]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -51,8 +51,9 @@ def wait_available(url: str, key: str, timeout: int = 10) -> bool:
 | 
				
			||||||
    """Wait until a service answer correctly or timeout."""
 | 
					    """Wait until a service answer correctly or timeout."""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def check_json(url: str, key: str) -> bool:
 | 
					    def check_json(url: str, key: str) -> bool:
 | 
				
			||||||
        """Ensure a service at a given url answers
 | 
					        """
 | 
				
			||||||
        with valid json containing a certain key."""
 | 
					        Ensure a service at a given url answers with valid json including a certain key.
 | 
				
			||||||
 | 
					        """
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            data = httpx.get(url).json()
 | 
					            data = httpx.get(url).json()
 | 
				
			||||||
            return key in data
 | 
					            return key in data
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue