Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:

- name: Lint
run: |
uv run --extra=dev pre-commit run --all-files --hook-stage pre-commit --verbose
uv run --extra=dev pre-commit run --all-files --hook-stage pre-push --verbose
uv run --extra=dev pre-commit run --all-files --hook-stage manual --verbose
uv run --extra=dev prek run --all-files --hook-stage pre-commit --verbose
uv run --extra=dev prek run --all-files --hook-stage pre-push --verbose
uv run --extra=dev prek run --all-files --hook-stage manual --verbose
Copy link

Choose a reason for hiding this comment

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

pre-commit-ci/lite-action step not removed as intended

The PR description states "Remove pre-commit-ci/lite-action step" but this step is still present in the workflow. The pre-commit-ci/lite-action is specifically designed to work with pre-commit to auto-fix PRs, not with prek. Since the PR switches to prek, this action won't function as intended and represents either dead code or broken functionality for auto-fixing PRs.

Fix in Cursor Fix in Web

env:
UV_PYTHON: ${{ matrix.python-version }}

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ci:
- pyrefly
- pyrefly-docs

default_install_hook_types: [pre-commit, pre-push, commit-msg]
default_install_hook_types: [pre-commit, pre-push]

repos:
- repo: meta
Expand Down
10 changes: 5 additions & 5 deletions docs/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ and on Ubuntu with ``apt``:

$ apt-get install -y enchant

Install ``pre-commit`` hooks:
Install ``prek`` hooks:

.. code-block:: console

$ pre-commit install
$ prek install

Linting
-------
Expand All @@ -40,9 +40,9 @@ Run lint tools either by committing, or with:

.. code-block:: console

$ pre-commit run --all-files --hook-stage pre-commit --verbose
$ pre-commit run --all-files --hook-stage pre-push --verbose
$ pre-commit run --all-files --hook-stage manual --verbose
$ prek run --all-files --hook-stage pre-commit --verbose
$ prek run --all-files --hook-stage pre-push --verbose
$ prek run --all-files --hook-stage manual --verbose

.. _Homebrew: https://brew.sh

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ optional-dependencies.dev = [
"interrogate==1.7.0",
"mypy[faster-cache]==1.19.1",
"mypy-strict-kwargs==2025.4.3",
"pre-commit==4.5.1",
"prek==0.2.25",
"pydocstyle==6.3",
"pygments==2.19.2",
"pylint[spelling]==4.0.4",
Expand Down