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
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ PRs that don't meet these criteria are automatically closed and labeled `violati

### Set up Python

Make sure that you have Python 3 installed. Version 3.7 or higher is required to run style checkers on pre-commit.
Make sure that you have Python 3 installed. Version 3.7 or higher is required to run style checkers on prek.

On macOS, we recommend using `brew` to install Python. For Windows, we recommend an official [python.org](https://www.python.org/downloads/) release.

Expand Down Expand Up @@ -103,15 +103,15 @@ We use `mypy` for typing our codebase. Use the following command to typecheck th
uv run --group typing mypy sentry_sdk tests
```

##### Install Coding Style Pre-commit Hooks
##### Install Coding Style Prek Hooks

`pre-commit` is included in the project's dev dependencies (installed by `uv sync`). Register the git hooks with:
`prek` is included in the project's dev dependencies (installed by `uv sync`). Register the git hooks with:

```bash
uv run pre-commit install
uv run prek install --prepare-hooks -f
```

Now, pre-commit will automatically lint your changes with `ruff`.
Now, prek will automatically lint your changes with `ruff`.


### Install `sentry-python` in Editable Mode
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dev = [
"tox",
"tox-uv",
"coverage[toml]",
"pre-commit",
"prek>=0.5.10",
"ruff",
"typos",
]
Expand Down
52 changes: 13 additions & 39 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading