Skip to content

Add prek config and check formatting in CI - #99

Open
dschwoerer wants to merge 1 commit into
mainfrom
prek-config
Open

dschwoerer wants to merge 1 commit into
mainfrom
prek-config

Conversation

@dschwoerer

Copy link
Copy Markdown
Collaborator

Use prek (a fast drop-in pre-commit replacement) to check that the code is clean, following the same approach as hermes-3 and BOUT-dev:

  • Add .pre-commit-config.yaml with builtin hooks (trailing whitespace, end-of-file), ruff (lint + format), and validation of GitHub workflows and dependabot config
  • Add a dev dependency group with prek, ruff and sync-with-uv
  • Replace the ruff action workflow with a prek-based check step that only checks files changed by the pull request

Disclaimer:
This was generated with a LLM.

Use prek (a fast drop-in pre-commit replacement) to check that the code
is clean, following the same approach as hermes-3 and BOUT-dev:

- Add .pre-commit-config.yaml with builtin hooks (trailing whitespace,
  end-of-file), ruff (lint + format), and validation of GitHub workflows
  and dependabot config
- Add a dev dependency group with prek, ruff and sync-with-uv
- Replace the ruff action workflow with a prek-based check step that only
  checks files changed by the pull request

This branch has not been deployed

No deployments
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.

1 participant