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

93 synchronize linting setup between gh actions and local development #94

Conversation

jcadam14
Copy link
Contributor

@jcadam14 jcadam14 commented Jan 17, 2024

Closes #93

Updated the actions for black and ruff to have versions. Black can take a compatible version definition using ~=. However ruff-action has a strict regex that only allows a specific version to be defined, no concept of keeping the latest compatible major version.

Copy link

Coverage report

This PR does not seem to contain any modification to coverable code.

@jcadam14 jcadam14 self-assigned this Jan 17, 2024
Copy link
Collaborator

Choose a reason for hiding this comment

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

think we might also need to do the same with the toml file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated toml to remove the ^ for the ruff version

pyproject.toml Outdated
@@ -21,7 +21,7 @@ alembic = "^1.12.0"
pydantic-settings = "^2.0.3"

[tool.poetry.group.dev.dependencies]
ruff = "^0.0.278"
ruff = "0.0.278"
black = "^23.7.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing black?

Copy link
Collaborator

@lchen-2101 lchen-2101 left a comment

Choose a reason for hiding this comment

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

LGTM

@lchen-2101 lchen-2101 merged commit 9531fb6 into main Jan 19, 2024
2 of 3 checks passed
@lchen-2101 lchen-2101 deleted the 93-synchronize-linting-setup-between-gh-actions-and-local-development branch January 19, 2024 16:11
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.

Synchronize linting setup between GH actions and local development
2 participants