Skip to content

Commit 6c599c1

Browse files
author
Max Wang
committed
black formatting (also added it to SKILL.md
1 parent 05c26a2 commit 6c599c1

3 files changed

Lines changed: 16 additions & 10 deletions

File tree

.claude/skills/dataverse-sdk-dev/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ This skill provides guidance for developers working on the PowerPlatform Dataver
2525
7. **Standardize output format** - Use `[INFO]`, `[WARN]`, `[ERR]`, `[OK]` prefixes for console output
2626
8. **No noqa comments** - Do not add `# noqa: BLE001` or similar linter suppression comments
2727
9. **Document public APIs** - Add Sphinx-style docstrings with examples for public methods
28-
10. **Define __all__ in module files, not __init__.py** - Use `__all__` to control exports in the actual module file (e.g., errors.py), not in `__init__.py`.
28+
10. **Define __all__ in module files, not __init__.py** - Use `__all__` to control exports in the actual module file (e.g., errors.py), not in `__init__.py`.
29+
11. **black formatting** - Use `black` for code formatting

src/PowerPlatform/Dataverse/claude_skill/dataverse-sdk-dev/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ This skill provides guidance for developers working on the PowerPlatform Dataver
2525
7. **Standardize output format** - Use `[INFO]`, `[WARN]`, `[ERR]`, `[OK]` prefixes for console output
2626
8. **No noqa comments** - Do not add `# noqa: BLE001` or similar linter suppression comments
2727
9. **Document public APIs** - Add Sphinx-style docstrings with examples for public methods
28-
10. **Define __all__ in module files, not __init__.py** - Use `__all__` to control exports in the actual module file (e.g., errors.py), not in `__init__.py`.
28+
10. **Define __all__ in module files, not __init__.py** - Use `__all__` to control exports in the actual module file (e.g., errors.py), not in `__init__.py`.
29+
11. **black formatting** - Use `black` for code formatting

tests/unit/test_client_dataframe.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,12 @@ def test_create_empty_dataframe(self):
189189

190190
def test_create_converts_nan_to_none(self):
191191
"""NaN values are converted to None in the payload."""
192-
df = pd.DataFrame([
193-
{"name": "Contoso", "telephone1": "555-0100"},
194-
{"name": "Fabrikam", "telephone1": None},
195-
])
192+
df = pd.DataFrame(
193+
[
194+
{"name": "Contoso", "telephone1": "555-0100"},
195+
{"name": "Fabrikam", "telephone1": None},
196+
]
197+
)
196198
self.client._odata._create_multiple.return_value = ["guid-1", "guid-2"]
197199
self.client._odata._entity_set_from_schema_name.return_value = "accounts"
198200

@@ -277,10 +279,12 @@ def test_update_multiple_change_columns(self):
277279

278280
def test_update_preserves_none_for_clearing_fields(self):
279281
"""None values in update are kept as None to allow clearing fields in Dataverse."""
280-
df = pd.DataFrame([
281-
{"accountid": "guid-1", "name": "New Name", "telephone1": None},
282-
{"accountid": "guid-2", "name": None, "telephone1": "555-0200"},
283-
])
282+
df = pd.DataFrame(
283+
[
284+
{"accountid": "guid-1", "name": "New Name", "telephone1": None},
285+
{"accountid": "guid-2", "name": None, "telephone1": "555-0200"},
286+
]
287+
)
284288

285289
self.client.update_dataframe("account", df, id_column="accountid")
286290

0 commit comments

Comments
 (0)