Skip to content

Setup CI and linting #17

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

Merged
merged 3 commits into from
Aug 7, 2024
Merged

Setup CI and linting #17

merged 3 commits into from
Aug 7, 2024

Conversation

norlandrhagen
Copy link
Contributor

Based on issues: #15 & #16

  • Adds a pre-commit-config.yaml file
  • Adds ruff formatting rules in pyproject.toml
  • Removes duplicate deps between requirements.txt & pyproject.toml
  • Adds .github CI file to run pytest daily

@norlandrhagen
Copy link
Contributor Author

Note: Someone with repo admin access will need to enable the Pre-commit CI app for automatic linting.

@tomwhite
Copy link
Member

tomwhite commented Aug 7, 2024

This is great @norlandrhagen - thank you so much for the contribution!

Copy link
Member

@tomwhite tomwhite left a comment

Choose a reason for hiding this comment

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

I'm not sure why the action hasn't run yet. I'm going to merge it now and we can improve things as needed.

Also, I haven't used uv before, but happy to try it out.

@tomwhite tomwhite merged commit 0b35a57 into cubed-dev:main Aug 7, 2024
This was referenced Aug 7, 2024
@norlandrhagen
Copy link
Contributor Author

np! Happy to switch it to standard pip or mamba if you have a preference. I think if someone with admin permission to the repo enables the pre-commit CI app (https://pre-commit.ci/) it should run at every PR.

@tomwhite
Copy link
Member

tomwhite commented Aug 7, 2024

@TomNicholas any thoughts about uv vs pip vs mamba?

I have enabled pre-commit CI now.

@TomNicholas
Copy link
Member

No preference! Happy to defer to @norlandrhagen 's helpful opinions :)

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