Skip to content

Commit c378bd0

Browse files
committed
💚 Add ruff formatting to code snippets in github workflow
1 parent 37f3a95 commit c378bd0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/code-embedder.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
run: |
3838
pip install .
3939
40+
- name: 🪄 Format raw code snippets with ruff
41+
run: ruff format dev/readme_snippets/
42+
4043
- name: 🪄 Format print comments in code snippets
4144
run: python dev/scripts/format_snippet_prints.py
4245

dev/readme_snippets/raw/features_demo.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@
3838
print(mapped)
3939

4040

41+
4142
# Recursive types:
4243
type NestedDict[K, V] = dict[K, NestedDictNode[K, V]]
4344
type NestedDictNode[K, V] = V | NestedDict[K, V]
4445
# Similar types for Mapping and MutableMapping
45-
46-
print("This is a new lines!") # hihi

0 commit comments

Comments
 (0)