Skip to content

Conversation

@luist18
Copy link
Contributor

@luist18 luist18 commented Nov 15, 2025

add pre-commit hooks

Adds pre-commit hooks and CI checks for cargo fmt and cargo clippy. No more manual linting before PRs.

python -m venv .venv # recommended
source .venv/bin/activate

pip install pre-commit
pre-commit install

Hooks run on commit, CI enforces on PRs. Also fixed existing Clippy warnings in the main crate.

@luist18 luist18 requested a review from mrl5 November 15, 2025 18:34
run: cargo pgrx init --pg17 /usr/bin/pg_config

- name: Run clippy
run: cargo clippy -p pg_session_jwt -- -D warnings
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
run: cargo clippy -p pg_session_jwt -- -D warnings
run: cargo clippy -p pg_session_jwt -- -A unknown_lints -D warnings -D clippy::todo

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.

4 participants