lint: fixed linting (again) across all files
This commit is contained in:
		
							
								
								
									
										11
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								setup.py
									
									
									
									
									
								
							| @@ -38,7 +38,9 @@ def open_local(paths, mode="r", encoding="utf8"): | ||||
|  | ||||
| with open_local(["sanic", "__version__.py"], encoding="latin1") as fp: | ||||
|     try: | ||||
|         version = re.findall(r"^__version__ = \"([^']+)\"\r?$", fp.read(), re.M)[0] | ||||
|         version = re.findall( | ||||
|             r"^__version__ = \"([^']+)\"\r?$", fp.read(), re.M | ||||
|         )[0] | ||||
|     except IndexError: | ||||
|         raise RuntimeError("Unable to determine version.") | ||||
|  | ||||
| @@ -73,7 +75,9 @@ setup_kwargs = { | ||||
|     "entry_points": {"console_scripts": ["sanic = sanic.__main__:main"]}, | ||||
| } | ||||
|  | ||||
| env_dependency = '; sys_platform != "win32" ' 'and implementation_name == "cpython"' | ||||
| env_dependency = ( | ||||
|     '; sys_platform != "win32" ' 'and implementation_name == "cpython"' | ||||
| ) | ||||
| ujson = "ujson>=1.35" + env_dependency | ||||
| uvloop = "uvloop>=0.5.3" + env_dependency | ||||
| types_ujson = "types-ujson" + env_dependency | ||||
| @@ -140,8 +144,7 @@ def strtobool(val: str) -> bool: | ||||
|     elif val.lower() in ["n", "no", "f", "false", "off", "0"]: | ||||
|         return False | ||||
|     else: | ||||
|         raise ValueError(f'String value {val} cannot be converted to bool') | ||||
|  | ||||
|         raise ValueError(f"String value {val} cannot be converted to bool") | ||||
|  | ||||
|  | ||||
| if strtobool(os.environ.get("SANIC_NO_UJSON", "no")): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stephen Sadowski
					Stephen Sadowski