julianwachholz / flake8-action

Run flake8 linter in your Python project.
https://github.com/marketplace/actions/python-flake8
MIT License
29 stars 9 forks source link

Run flake8 against a specific directory #5

Closed guits closed 4 years ago

guits commented 4 years ago

Hi @julianwachholz

thanks for maintaining this repo!

I'd like to know whether it is possible to run flake8 against a specific directory instead the whole repo (perhaps we can pass args)?

ie: I have a project where all my relevant python file reside in a directory called ./library/, when I run this flake8-action it is run against the whole project, even though I've added this piece of code in my github action file:

on:
  pull_request:
    paths:
      - 'library/*.py'

not really familiar with github workflow syntax, maybe I'm missing something? In any case any pointer would be appreciated. Thanks!