-
Notifications
You must be signed in to change notification settings - Fork 8
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
how to add flake8 plugins #22
Comments
Thanks for the suggestion! The plugins can now be specified. |
Thank you! Strangely, now when running the action on pull_request, the build is passing even if the linting failed. Log: My .yaml file: # Based on https://github.com/julianwachholz/flake8-action
name: Code Quality
on:
pull_request:
# paths:
# - '*.py'
branches:
- main
- develop
jobs:
lint:
name: Python Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Run flake8
uses: julianwachholz/flake8-action@v2
with:
checkName: "Python Lint"
path: .
plugins: "pep8-naming==0.12.1 flake8-comprehensions==3.6.1"
config: .flake8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} I took insipration from your yaml file here, and the only difference that I spot was on push (your code) whereas in mine is on pull_request. What do you think? BTW: consider adding in the README.md how to add multiple plugins: |
I will investigate! Thank you for reporting this. Maybe there are still some issues with the token somewhere? |
Will check with my organization too, thanks Edit: It seems that the token is valid, I double cheeked that. Did you try to run the action in a private repository? I think it might be related. Edit2: I saw your Thank you again, |
Hi,
Thank you for the great action!
I would like to use flake8 additional plugins (e.g. pep8-naming).
How should I do it using the action?
I saw this line in the source code
flake8-action/dist/index.js
Line 17 in a61bd56
It seems to me that it could be inserted there, but I'm not sure.
Thank you,
Eli
The text was updated successfully, but these errors were encountered: