Skip to content

Issues with pre-commit hooks on Windows #305

Closed
@jrast

Description

@jrast

The pre-commit hooks added in 283eb40 rely on make being available, which is mostly not the case on windows.
However, the makefile simply calls ruff which can be done in pre-commit directly: https://github.com/astral-sh/ruff-pre-commit

Also I don't recommed to run the tests on each commit:

  • They take far to long for a commit (hang on windows)
  • Prevent to work on a PR which still has some issues.
  • Maybe there is a pre-commit option to only run the tests on the main branch?

Tests should be run manually and in CI to prevent merges with broken tests.

Typechecking seems to run fast but falls into a simmilar category as tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions