-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
Add lint-action and action-eslint #33318
Conversation
.github/workflows/lint.yml
Outdated
uses: actions/setup-python@v1 | ||
if: ${{ steps.changed-files.outputs.all_changed_files }} | ||
with: | ||
python-version: 3.8 |
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.
Why 3.8? HQ currently requires 3.9.
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.
Thanks!
- name: Run flake8 linter | ||
if: ${{ steps.changed-files.outputs.all_changed_files }} | ||
uses: wearerequired/lint-action@v2 | ||
with: |
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.
I assume this auto-discovers the .flake8
config file (and likewise for javascript)?
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.
Correct.
This adds the new linter(s) to the repo, lint-action and action-eslint.
See this PR as example usage.
In addition to the linked PR I also verified the following scenarios: