Skip to content

Commit 16815a0

Browse files
fix ruamel.yaml
1 parent 4032c7b commit 16815a0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/copilot-instructions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Run these commands in order to set up the development environment:
2424

2525
3. **Verify dependencies are working:**
2626
```bash
27-
python -c "import yaml; yaml.safe_load(open('projects.yaml'))"
27+
python -c "from ruamel.yaml import YAML; YAML(typ='safe').load('projects.yaml')"
2828
```
2929
- Should run without error if dependencies are properly installed
3030
- Use this to test if ruamel.yaml is available before proceeding
@@ -33,7 +33,7 @@ Run these commands in order to set up the development environment:
3333
```bash
3434
pip install "best-of @ git+https://github.com/YDX-2147483647/best-of-generator.git@best-of-bits"
3535
```
36-
- Takes 20-25 seconds. NEVER CANCEL. Set timeout to 60+ minutes.
36+
- Takes 20-25 seconds.
3737
- This is the core tool that generates README.md from projects.yaml
3838

3939
### Core Commands
@@ -86,7 +86,7 @@ just list-project-suggestions
8686

8787
1. **Validate YAML syntax:**
8888
```bash
89-
python -c "import yaml; yaml.safe_load(open('projects.yaml'))"
89+
python -c "from ruamel.yaml import YAML; YAML(typ='safe').load('projects.yaml')"
9090
```
9191

9292
2. **Check for duplicate project names:**
@@ -159,7 +159,7 @@ The repository includes several automated workflows:
159159
- Install best-of generator if generation commands are needed
160160

161161
### YAML validation errors:
162-
- Use `python -c "import yaml; yaml.safe_load(open('projects.yaml'))"` to check syntax
162+
- Use `python -c "from ruamel.yaml import YAML; YAML(typ='safe').load('projects.yaml')"` to check syntax
163163
- Common issues: incorrect indentation, missing quotes for special characters
164164

165165
### GitHub CLI authentication:
@@ -208,11 +208,11 @@ When committing changes, exclude these files/directories:
208208
# Setup
209209
sudo apt-get update && sudo apt-get install -y just
210210
just bootstrap # May fail in restricted environments - that's OK
211-
python -c "import yaml; yaml.safe_load(open('projects.yaml'))" # Verify dependencies
211+
python -c "from ruamel.yaml import YAML; YAML(typ='safe').load('projects.yaml')" # Verify dependencies
212212
pip install "best-of @ git+https://github.com/YDX-2147483647/best-of-generator.git@best-of-bits"
213213

214214
# Validation (these work offline)
215-
python -c "import yaml; yaml.safe_load(open('projects.yaml'))"
215+
python -c "from ruamel.yaml import YAML; YAML(typ='safe').load('projects.yaml')"
216216
just sync-issue-form
217217
just build-for-pandoc
218218

0 commit comments

Comments
 (0)