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

Update ci.yml #1045

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Update ci.yml #1045

wants to merge 8 commits into from

Conversation

rieder
Copy link
Member

@rieder rieder commented Apr 23, 2024

No description provided.

@rieder rieder marked this pull request as ready for review April 23, 2024 13:41
@rieder rieder requested a review from a team as a code owner April 23, 2024 13:41
Copy link
Collaborator

@LourensVeen LourensVeen left a 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?


- name: Run linters
uses: wearerequired/lint-action@v2
with:
black: true
flake8: true
Copy link
Collaborator

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?

Copy link
Member Author

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
@rieder
Copy link
Member Author

rieder commented May 1, 2024

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?

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.

@rieder
Copy link
Member Author

rieder commented May 8, 2024

@LourensVeen I'm not sure how to test the auto-fix part of this, do you have any ideas for that?

@rieder
Copy link
Member Author

rieder commented May 12, 2024

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.

@rieder
Copy link
Member Author

rieder commented May 22, 2024

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.

Copy link

stale bot commented Jul 21, 2024

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.

@stale stale bot added the stale Issues that have been around for a while without updates label Jul 21, 2024
@rieder rieder added keep-open and removed stale Issues that have been around for a while without updates labels Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants