Skip to content

Conversation

@wenkokke
Copy link
Collaborator

@wenkokke wenkokke commented Oct 24, 2024

Caveats may apply.

Notably, this removes support for the path/command flags and requires that the scripts are run from the repository root.

I'm happy to restore support for the path/command flags and permit the commands to work from any directory, but figured I shouldn't complicate these files if that was unused complexity.

Copy link
Collaborator

@jorisdral jorisdral left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! And it's also nice that it now prints the files that are checked/formatted

@jorisdral
Copy link
Collaborator

FYI, to make CI pass these lines have to be modified to call the renamed formatting scripts:

./scripts/format-cabal-fd.sh

./scripts/format-stylish-fd.sh

@wenkokke wenkokke force-pushed the wenkokke/simplify-scripts branch from 262b27b to b121090 Compare October 25, 2024 12:57
Copy link
Collaborator

@mheinzel mheinzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@wenkokke
Copy link
Collaborator Author

I've back ported some added robustness from a different project that checks for unstaged files and checks for the formatter versions.

Copy link
Collaborator

@jorisdral jorisdral left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM again. Let's squash the commits a bit before we merge

@wenkokke wenkokke force-pushed the wenkokke/simplify-scripts branch 4 times, most recently from d86c2e9 to aac59d2 Compare November 4, 2024 16:22
@mheinzel
Copy link
Collaborator

mheinzel commented Nov 4, 2024

Seems like something went wrong when rebasing, GitHub thinks you're adding 39 new commits.

@jorisdral jorisdral force-pushed the wenkokke/simplify-scripts branch from aac59d2 to fecc54d Compare November 4, 2024 20:49
@jorisdral jorisdral enabled auto-merge November 4, 2024 20:49
@jorisdral jorisdral added this pull request to the merge queue Nov 4, 2024
Merged via the queue into main with commit 336f38e Nov 4, 2024
24 checks passed
@jorisdral jorisdral deleted the wenkokke/simplify-scripts branch November 4, 2024 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants