-
Notifications
You must be signed in to change notification settings - Fork 52
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 Bump black version #28
Conversation
It's weird that I remember putting pip wheel metadata files to |
Could you explain what you mean here, I don't get it :D |
@BenjaminBossan Sorry it's my assumptions again. So the problem with black and other formatting libraries is that we use a specific pinned version in our pre-commit configurations, meanwhile on github workflow file, it installs whatever's latest (see below) |
This PR should also bump the version on the CI, which you can change here: skops/.github/workflows/build-test.yml Line 35 in ff5a4e1
It should also run the new black on the whole codebase and include the changes in a separate commit in this PR (this can also be a separate PR if we want to add it to git ignore revisions) |
I'm not sure why it wouldn't work. But in the end, do you need your own fork? You can push to this repo directly. |
It would work from the fork, please DON'T push to this repo 🙈 |
For my better understanding, what is the problem with creating branches on this repo directly and base PRs on those branches? |
These are my reasons for advocating no branches on the main repo:
|
Got it, thanks for explaining. Maybe we should have a central place to write things like this or our discussion about squashing down? |
People at HF aren't on the same page when it comes to these topics, so I rather make it project specific. But I agree we should have this somewhere, in our contributing guidelines. The work on this project started being much faster once I went on holiday then the conference this week, I haven't had a chance to add documentation or README for these issues :D :P |
I can simply modify github actions, no worries |
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.
LGTM, thanks for making the update.
On a related note: It has always annoyed me how easy it is for the versions of the dev tools to get out of sync. There is a version for CI, a version for pre-commit hooks, a version for your dev environment. Ideally, there would be a single requirements file that specifies the versions for all those, but I don't know of any way to achieve that :/
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.
There might be a way to use _min_dependencies.py
to get the version in both scripts, but we can figure that out later.
@@ -32,7 +32,10 @@ jobs: | |||
- name: Install dependencies | |||
run: | | |||
pip install .[docs] | |||
pip install pytest black isort pytest-cov |
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.
we also need a comment here, and on the pre-commit config file that these two versions should be upgraded together so that we don't forget and they are kept in sync.
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
This PR bumps black version. I only did this atm because I couldn't find out a way on how to modify a github actions workflow file from my own fork (it does make sense that I shouldn't do it 😅).
I did google it, it feels like a secret information only 10x devs know about and never tell anyone else.