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
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export CMAKE_POLICY_VERSION_MINIMUM=3.5
make install-dev install-pre-commit-hook
make install-dev install-prek-hook
. sentry_streams/.venv/bin/activate
. scripts/rust-envvars
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
- run: |
make install-dev
. sentry_streams/.venv/bin/activate
pre-commit run
prek run
8 changes: 5 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
- repo: builtin
hooks:
- id: check-case-conflict
- id: check-merge-conflict
files: ^(?!.*\.rst).*
- id: check-symlinks
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
# Exclude CHANGELOG.md from this hook as Craft generates updates
# that make pre-commit fail on the release branch.
# An extra new line is added at the end.
exclude: "^sentry_streams/CHANGELOG.md|^sentry_streams_k8s/CHANGELOG.md"
- id: trailing-whitespace
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: detect-private-key
- id: fix-encoding-pragma
args: ["--remove"]
- repo: https://github.com/psf/black
Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ Installs development dependencies for all packages using `uv`. This will:
- Set up virtual environments for `sentry_streams` and `sentry_streams_k8s`

```bash
make install-pre-commit-hook
make install-prek-hook
```
Installs pre-commit hooks for code quality checks.
Installs prek hooks for code quality checks.

```bash
make reset
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ install-dev:
PROJECT_ROOT=`pwd`/sentry_streams_k8s uv sync --project ./sentry_streams_k8s
.PHONY: install-dev

install-pre-commit-hook:
./sentry_streams/.venv/bin/pre-commit install --install-hooks
.PHONY: install-pre-commit-hook
install-prek-hook:
./sentry_streams/.venv/bin/prek install --prepare-hooks -f
.PHONY: install-prek-hook

tests-streams:
./sentry_streams/.venv/bin/pytest -vv sentry_streams/tests
Expand Down
2 changes: 1 addition & 1 deletion sentry_streams/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ docs = [
]
dev = [
"mypy>=1.14.1",
"pre-commit>=4.1.0",
"prek>=0.5.10",
"pytest>=8.3.4",
"maturin>=1.5.1",
"types-PyYAML>=6.0.12",
Expand Down
109 changes: 14 additions & 95 deletions sentry_streams/uv.lock

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

2 changes: 1 addition & 1 deletion sentry_streams_k8s/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dev = [
"kopf>=1.37",
"kubernetes>=29",
"mypy>=1.14.1",
"pre-commit>=4.1.0",
"prek>=0.5.10",
"pytest>=8.3.4",
"responses>=0.25.6",
"sentry-infra-tools>=1.24.0",
Expand Down
Loading
Loading