-
Notifications
You must be signed in to change notification settings - Fork 192
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
ci(pgai): add format-fix, lint-fix and fix cmds to justfiles #479
base: main
Are you sure you want to change the base?
Conversation
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.
Maybe also add a fix command that does lint-fix and format-fix?
@@ -65,12 +65,6 @@ USER root | |||
|
|||
RUN pip install --break-system-packages uv==0.5.20 | |||
|
|||
# install pgspot | |||
RUN set -eux; \ |
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.
@jgpruitt Is there any reason I'm not aware of for building pgspot from source instead of installing as a dev dependency ?
@@ -30,6 +30,7 @@ dev = [ | |||
"fastapi-cli==0.0.5", | |||
"psycopg[binary]==3.2.1", | |||
"uv==0.5.20", | |||
"pgspot>=0.9.0", |
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.
dev dependency
@adolsalamanca @cevian I made another round, please check the description of the PR with an updated list of the changes. 🙏 🙏 |
just format-fix
will directly fix the formatting issues instead of showing the diff asjust format
does. Useful for development.just lint-fix
will do the same but for linting issues.just fix
will run both commands above.This PR also adds pgspot as dev dependency instead of building from source in Docker. Unless there is a specific reason, this alternative allows running pgspot from host machine and not only from the Docker container.