-
Notifications
You must be signed in to change notification settings - Fork 100
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
Update ci.yml #1045
base: main
Are you sure you want to change the base?
Update ci.yml #1045
Conversation
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.
Nice, but we should probably pick one tool and not run two, as they may end up fighting each other. Also, possibly ruff should be under consideration too?
.github/workflows/lint.yml
Outdated
|
||
- name: Run linters | ||
uses: wearerequired/lint-action@v2 | ||
with: | ||
black: true | ||
flake8: true |
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.
Should we only call black then, and not flake8?
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.
This is just for checking, not fixing. So I don't mind running both. For fixing syntax we should make a choice.
- disable flake8 - enable black - enable (black_)auto_fix ONLY for pull requests, not for pushing to main directly
yes we should decide which tool(s) we would want. black and flake8 don't do exactly the same thing, so for checks we may want to use both. Or ruff, I'll have a look at that too. |
@LourensVeen I'm not sure how to test the auto-fix part of this, do you have any ideas for that? |
I've tested it on a different repository now. The linter will push a fix to the branch in the PR, which seems fine to me. |
I'm just not sure yet if this will fix only the files affected by the PR (which should be how this works) or if it checks all other files too (which I really really don't want). Need to be sure of that before merging. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 28 days if no further activity occurs. Thank you for your contributions. |
No description provided.