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

chore: Add Ruff linting #55

Merged
merged 4 commits into from
Nov 6, 2023
Merged

chore: Add Ruff linting #55

merged 4 commits into from
Nov 6, 2023

Conversation

mark-koch
Copy link
Collaborator

Fixes #54

@mark-koch mark-koch requested a review from ss2165 November 6, 2023 09:35
Comment on lines 40 to 44
- name: Check formatting with ruff
run: ruff format --check guppy

- name: Lint with ruff
run: ruff check guppy
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. Just wondering, why is this better than just invoking the cli?

Copy link
Member

Choose a reason for hiding this comment

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

mainly future-proofing and version control https://github.com/chartboost/ruff-action

@mark-koch mark-koch requested a review from ss2165 November 6, 2023 10:10
@mark-koch mark-koch merged commit 2e9f9af into main Nov 6, 2023
1 check passed
@mark-koch mark-koch deleted the chore/ruff branch November 6, 2023 10:33
@qartik
Copy link
Member

qartik commented Nov 6, 2023

You may also want to add a ruff.toml file for additional checks. I maintain a sample at https://github.com/CQCL/pytemplate/blob/main/ruff.toml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ruff linting/formatting to CI
3 participants