-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix for CI (black) #78
Conversation
Seems like there were some issues with starting up the CI system with versions of Python other than 3.9? |
The reason this fails is because you are asking black to automatically fix the issues it finds and it seems that there are permissions issues when it tries to amend the commits. You can either:
|
So there are various problems here:
|
It works anyway if black and flake go through. Although permissions are still an issue (see last logs), if linting is fixed it won't raise any error at the end.
Fixed by adding "
Fixed by removing:
and letting default maximum line-length |
should be all good now. let's wait to see if latest CI pass |
Excellent thank you Thomas. |
@@ -12,7 +12,7 @@ jobs: | |||
steps: | |||
- uses: actions/setup-python@v2 | |||
with: | |||
python-version: "3.x" | |||
python-version: "3.7" |
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.
Does the 3.x imply that many versions of Python would be tested? Is it possible to test the last three trailing versions minus the current (which is typically always problematic)?
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.
It's a sort of "wildcard" that matches the latest minor python3 version in github CI.
Since @pmav99 suggested to use the lowest available, I changed it to 3.7
@krober10nd is it really necessary to have the |
it is not essential since the PR author will know if it is violating the format. I'm in favor of removing it. |
To solve #77
I am first putting as draft to if CI passes