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

Use Reviewdog to Annotate PRs with Pylint and Spellcheck #2666

Merged
merged 3 commits into from
Jan 18, 2024

Conversation

IsaacMilarky
Copy link
Contributor

@IsaacMilarky IsaacMilarky commented Jan 17, 2024

Description

  • Add GitHub workflow to run reviewdog and annotate with relevant linters and checkers
  • When a PR is created into either dev or main, pylint checks are ran and annotated on that PR for review
  • The only files considered are the ones that contain changes to not be overwhelming

Notes for Reviewers
I decided on Pylint because it's not that strict of a linter. We should consider how strict we are willing to be on linting and checking in general in the future as reviewdog supports many tools. Some good linting alternatives are listed in the readme for the reviewdog repo

We can also automatically force new PRs to follow PEP8 but that might be overkill.

Signed commits

  • Yes, I signed my commits.

@IsaacMilarky
Copy link
Contributor Author

Example of Pylint check in use on this PR: DSACMS/metrics#74

@sgoggins
Copy link
Member

I am currently fixing the docs build error that exists across the board following readthedocs.io changes last week.

@sgoggins sgoggins merged commit e3e9a61 into dev Jan 18, 2024
7 of 8 checks passed
@IsaacMilarky IsaacMilarky deleted the use-pylint-checks branch January 19, 2024 15:40
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.

2 participants