Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

smoya
Copy link
Contributor

@smoya smoya commented Feb 13, 2025

  • just format-fix will directly fix the formatting issues instead of showing the diff as just 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.

@smoya smoya requested a review from a team as a code owner February 13, 2025 16:27
Copy link
Collaborator

@cevian cevian left a 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?

@smoya smoya changed the title ci(pgai): add format-fix cmd to justfile ci(pgai): add format-fix, lint-fix and fix cmds to justfiles Feb 14, 2025
@@ -65,12 +65,6 @@ USER root

RUN pip install --break-system-packages uv==0.5.20

# install pgspot
RUN set -eux; \
Copy link
Contributor Author

@smoya smoya Feb 14, 2025

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",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

dev dependency

@smoya
Copy link
Contributor Author

smoya commented Feb 14, 2025

@adolsalamanca @cevian I made another round, please check the description of the PR with an updated list of the changes. 🙏 🙏

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.

3 participants