Skip to content

Commit c3d89b5

Browse files
committed
refactor: improve code formatting and structure in core modules
- Format firecracker/microvm.py with ruff for consistency - Update network.py and utils.py with code style improvements - Add _version.py module for version tracking - Improve error handling and validation in MicroVM class - Enhance snapshot loading with better error messages and recovery
1 parent 05ecfa5 commit c3d89b5

4 files changed

Lines changed: 937 additions & 543 deletions

File tree

firecracker/_version.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# file generated by setuptools-scm
2+
# don't change, don't track in version control
3+
4+
__all__ = [
5+
"__version__",
6+
"__version_tuple__",
7+
"version",
8+
"version_tuple",
9+
"__commit_id__",
10+
"commit_id",
11+
]
12+
13+
TYPE_CHECKING = False
14+
if TYPE_CHECKING:
15+
from typing import Tuple
16+
from typing import Union
17+
18+
VERSION_TUPLE = Tuple[Union[int, str], ...]
19+
COMMIT_ID = Union[str, None]
20+
else:
21+
VERSION_TUPLE = object
22+
COMMIT_ID = object
23+
24+
version: str
25+
__version__: str
26+
__version_tuple__: VERSION_TUPLE
27+
version_tuple: VERSION_TUPLE
28+
commit_id: COMMIT_ID
29+
__commit_id__: COMMIT_ID
30+
31+
__version__ = version = '0.0.post129+gcc985963c.d20260127'
32+
__version_tuple__ = version_tuple = (0, 0, 'post129', 'gcc985963c.d20260127')
33+
34+
__commit_id__ = commit_id = 'gcc985963c'

0 commit comments

Comments
 (0)