mirror of
				https://github.com/Akkudoktor-EOS/EOS.git
				synced 2025-10-30 22:36:21 +00:00 
			
		
		
		
	pre-commit update and ignore changes (#461)
* pre-commit autoupdate * type: ignore changes * [attr-defined,unused-ignore] usage
This commit is contained in:
		| @@ -1268,14 +1268,14 @@ class DataImportMixin: | ||||
|                     # We jump back by 1 hour | ||||
|                     # Repeat the value(s) (reuse value index) | ||||
|                     for i in range(interval_steps_per_hour): | ||||
|                         logger.debug(f"{i+1}: Repeat at {next_time} with index {value_index}") | ||||
|                         logger.debug(f"{i + 1}: Repeat at {next_time} with index {value_index}") | ||||
|                         timestamps_with_indices.append((next_time, value_index)) | ||||
|                         next_time = next_time.add(seconds=interval.total_seconds()) | ||||
|                 else: | ||||
|                     # We jump forward by 1 hour | ||||
|                     # Drop the value(s) | ||||
|                     logger.debug( | ||||
|                         f"{i+1}: Skip {interval_steps_per_hour} at {next_time} with index {value_index}" | ||||
|                         f"{i + 1}: Skip {interval_steps_per_hour} at {next_time} with index {value_index}" | ||||
|                     ) | ||||
|                     value_index += interval_steps_per_hour | ||||
|  | ||||
|   | ||||
| @@ -205,9 +205,9 @@ async def server_shutdown_task() -> None: | ||||
|     # Gracefully shut down this process. | ||||
|     pid = psutil.Process().pid | ||||
|     if os.name == "nt": | ||||
|         os.kill(pid, signal.CTRL_C_EVENT)  # type: ignore[attr-defined] | ||||
|         os.kill(pid, signal.CTRL_C_EVENT)  # type: ignore[attr-defined,unused-ignore] | ||||
|     else: | ||||
|         os.kill(pid, signal.SIGTERM) | ||||
|         os.kill(pid, signal.SIGTERM)  # type: ignore[attr-defined,unused-ignore] | ||||
|  | ||||
|     logger.info(f"🚀 EOS terminated, PID {pid}") | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user