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: refresh settings and workflow #146

Merged
merged 3 commits into from
Jan 7, 2025
Merged

Conversation

daabr
Copy link
Contributor

@daabr daabr commented Jan 5, 2025

  • Enable unit testing (except in the Purrr project - those UT require AK context)
  • Add various optional but important linters to Ruff
  • Don't pin pytest and ruff versions, no point in updating it from time to time like in the AK repo

@@ -1,7 +1,7 @@
# Add "test" once we have unit tests
all: deps format lint # test
all: deps lint format test
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a specific reason for changing the order between lint and format?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. It turns out that import sorting happens in the lint step, we I'm allowing the formatter to react to that. Other than that the order doesn't really matter either way.

Comment on lines +1 to +2
pytest
ruff
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did we remove the version constraint

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As I wrote in the PR description: no point in updating them from time to time like in the AK repo, we're OK with (and in fact prefer) always using the latest release

pyproject.toml Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
@daabr daabr merged commit 015dfee into daniel/refactor-copilot Jan 7, 2025
2 checks passed
@daabr daabr deleted the daniel/refresh-ci branch January 7, 2025 02:31
daabr added a commit that referenced this pull request Jan 7, 2025
- Enable unit testing (except in the Purrr project - those UT require AK
context)
- Add various optional but important linters to Ruff
- Don't pin pytest and ruff versions, no point in updating it from time
to time like in the AK repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants