-
Notifications
You must be signed in to change notification settings - Fork 2
Ruff precommit #235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Ruff precommit #235
Changes from all commits
3b4309d
dab42df
f41646e
0d8e4e6
4ce53c3
e5eab79
ea62d24
2d239fe
9d10da7
a890d52
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| repos: | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: v0.15.5 | ||
| hooks: | ||
| - id: ruff-check | ||
| args: [ --fix ] | ||
| # Run the formatter. | ||
| - id: ruff-format | ||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -35,4 +35,6 @@ ipython | |||||||
| # Serve static files in production containers | ||||||||
| whitenoise>=6.0.0,<7.0.0 | ||||||||
| # FORMATTING AND LINTING | ||||||||
| ruff | ||||||||
| ruff | ||||||||
|
||||||||
| ruff | |
| ruff==0.6.9 |
Copilot
AI
Mar 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pre-commit is being added to TEKDB/requirements.txt, which is installed in the production Docker image and used by update/provisioning scripts. This makes a dev-only tool part of the runtime dependency set and increases image size/attack surface unnecessarily. Consider moving pre-commit (and other lint/format tooling) into a separate dev requirements file (e.g., requirements_dev.txt) or an optional extra, and keep production installs on runtime-only dependencies.
| #pre-commit | |
| pre-commit | |
| #pre-commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Ruff version used by this pre-commit hook is pinned via
rev, but CI currently runsruff checkfrom the version installed viaTEKDB/requirements.txt. If these drift, developers may get different fixes/formatting locally than what CI expects. Consider aligning the versions by pinningruffinrequirements.txtto the same version as the hook (or updating CI to runpre-commit run --all-files).