Skip to content

Commit 6540307

Browse files
committed
Instructed Repo Assist to run Fantomas twice after work is done
1 parent 37407c5 commit 6540307

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ jobs:
3636

3737
- name: Restore dependencies
3838
run: |
39+
dotnet tool restore
3940
dotnet restore FSharp.Data.GraphQL.slnx
4041
dotnet restore FSharp.Data.GraphQL.Integration.slnx

.github/workflows/repo-assist.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,12 @@ This is an **F# project** targeting **.NET 10**. Key details:
375375
- **Language**: F# 10 (prefer latest F# 10 features over old syntax)
376376
- **Build**: `dotnet build FSharp.Data.GraphQL.slnx`
377377
- **Test**: `dotnet test FSharp.Data.GraphQL.slnx`
378+
- **Code formatting**: After making any code changes, always run Fantomas **twice** on the modified files before committing:
379+
```
380+
dotnet fantomas <changed files>
381+
dotnet fantomas <changed files>
382+
```
383+
Running twice ensures idempotency. If the second run produces any changes, the output is not stable — fix the code until both runs produce identical results.
378384
- **Code style**: Refer to `.github/copilot-instructions.md` for detailed F# coding conventions
379385
- **Preferences**: Prefer `voption` over `option`, prefer `task` CE over `async` CE
380386
- **Class construction**: Always use F# class initializers instead of property assignment

0 commit comments

Comments
 (0)