Skip to content

Commit 69509fd

Browse files
committed
Update Chore + Documentation
1 parent 5a0fdc7 commit 69509fd

File tree

11 files changed

+276
-45
lines changed

11 files changed

+276
-45
lines changed

cppython/plugins/cmake/schema.py

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
"""CMake data definitions"""
1+
"""CMake plugin schema
2+
3+
This module defines the schema and data models for integrating the CMake
4+
generator with CPPython. It includes definitions for cache variables,
5+
configuration presets, and synchronization data.
6+
"""
27

38
from enum import Enum, auto
49
from pathlib import Path
@@ -11,10 +16,10 @@
1116

1217

1318
class VariableType(Enum):
14-
"""_summary_
19+
"""Defines the types of variables that can be used in CMake cache.
1520
1621
Args:
17-
Enum: _description_
22+
Enum: Base class for creating enumerations.
1823
"""
1924

2025
BOOL = (auto(),) # Boolean ON/OFF value.
@@ -27,7 +32,12 @@ class VariableType(Enum):
2732

2833

2934
class CacheVariable(CPPythonModel, extra='forbid'):
30-
"""_summary_"""
35+
"""Represents a variable in the CMake cache.
36+
37+
Attributes:
38+
type: The type of the variable (e.g., BOOL, PATH).
39+
value: The value of the variable, which can be a boolean or string.
40+
"""
3141

3242
type: None | VariableType
3343
value: bool | str

cppython/plugins/conan/plugin.py

+15-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
"""_summary_"""
1+
"""Conan Provider Plugin
2+
3+
This module implements the Conan provider plugin for CPPython. It handles
4+
integration with the Conan package manager, including dependency resolution,
5+
installation, and synchronization with other tools.
6+
"""
27

38
from pathlib import Path
49
from typing import Any
@@ -67,24 +72,27 @@ def update(self) -> None:
6772

6873
@staticmethod
6974
def supported_sync_type(sync_type: type[SyncData]) -> bool:
70-
"""_summary_
75+
"""Checks if the given sync type is supported by the Conan provider.
7176
7277
Args:
73-
sync_type: _description_
78+
sync_type: The type of synchronization data to check.
7479
7580
Returns:
76-
_description_
81+
True if the sync type is supported, False otherwise.
7782
"""
7883
return sync_type in CMakeGenerator.sync_types()
7984

8085
def sync_data(self, consumer: SyncConsumer) -> SyncData:
81-
"""_summary_
86+
"""Generates synchronization data for the given consumer.
8287
8388
Args:
84-
consumer: _description_
89+
consumer: The input consumer for which synchronization data is generated.
8590
8691
Returns:
87-
_description_
92+
The synchronization data object.
93+
94+
Raises:
95+
NotSupportedError: If the consumer's sync type is not supported.
8896
"""
8997
for sync_type in consumer.sync_types():
9098
if sync_type == CMakeSyncData:

cppython/plugins/conan/resolution.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""_summary_"""
1+
"""Provides functionality to resolve Conan-specific data for the CPPython project."""
22

33
from typing import Any
44

cppython/plugins/conan/schema.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
"""TODO"""
1+
"""Conan plugin schema
2+
3+
This module defines Pydantic models used for integrating the Conan
4+
package manager with the CPPython environment. The classes within
5+
provide structured configuration and data needed by the Conan Provider.
6+
"""
27

38
from cppython.core.schema import CPPythonModel
49

cppython/plugins/git/plugin.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
"""Git SCM plugin"""
1+
"""Git SCM Plugin
2+
3+
This module implements the Git SCM plugin for CPPython. It provides
4+
functionality for interacting with Git repositories, including feature
5+
detection, version extraction, and project description retrieval.
6+
"""
27

38
from pathlib import Path
49

cppython/plugins/vcpkg/plugin.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ def features(directory: Path) -> SupportedProviderFeatures:
4747

4848
@staticmethod
4949
def supported_sync_type(sync_type: type[SyncData]) -> bool:
50-
"""_summary_
50+
"""Checks if the given sync type is supported by the vcpkg provider.
5151
5252
Args:
53-
sync_type: _description_
53+
sync_type: The type of synchronization data to check.
5454
5555
Returns:
56-
_description_
56+
True if the sync type is supported, False otherwise.
5757
"""
5858
return sync_type in CMakeGenerator.sync_types()
5959

cppython/test/mock/generator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ def information() -> Information:
5151

5252
@staticmethod
5353
def sync_types() -> list[type[SyncData]]:
54-
"""_summary_
54+
"""Returns the supported synchronization data types for the mock generator.
5555
5656
Returns:
57-
_description_
57+
A list of supported synchronization data types.
5858
"""
5959
return [MockSyncData]
6060

0 commit comments

Comments
 (0)