Skip to content

chore: add pre-commit - #128

Open
jjfrench wants to merge 1 commit into
mainfrom
chore/pre-commit
Open

chore: add pre-commit#128
jjfrench wants to merge 1 commit into
mainfrom
chore/pre-commit

Conversation

@jjfrench

@jjfrench jjfrench commented Sep 7, 2026

Copy link
Copy Markdown
Member

No description provided.

@jjfrench
jjfrench requested a review from hrodmn September 7, 2026 20:58
@jjfrench jjfrench self-assigned this Sep 7, 2026
@jjfrench
jjfrench requested a review from a team as a code owner September 7, 2026 20:58

@hrodmn hrodmn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for adding this! I have a few small suggestions but nothing blocking.

Comment on lines +56 to +59
[tool.ruff.lint]
select = [
"FAST", # fastapi
]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this all we want to use?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'll add the others from the root pyproject.toml 👍🏼

Comment thread .pre-commit-config.yaml
additional_dependencies:
- types-requests
- pydantic>=2.13.4
- pydantic-settings>=2.15.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This pre-commit hook is nice for keeping pre-commit versions in sync with the uv.lock file. I'm not sure how that will interact with the dependabot config for pre-commit updates though 🤔

Suggested change
- pydantic-settings>=2.15.0
- pydantic-settings>=2.15.0
- repo: https://github.com/tsvikas/sync-with-uv
rev: v0.5.0
hooks:
- id: sync-with-uv

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah 😕 it's sort of hit or miss - when updating just the uv.lock file, this seems to fail. Nice for local development - reminder for resyncing before pushing, but not so great for automated dependency updates

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.

2 participants