Skip to content

Commit

Permalink
added example for excluding a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderMelde authored Apr 10, 2020
1 parent 186be9e commit b65bdf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ jobs:
```

You can pass any other [YAPF parameter](https://github.com/google/yapf#usage) using the `args` setting, e.g. for setting a different code style (default is PEP8), but you can also remove the `with` section entirely if you wish.

If you want to exclude a certain directory, you can use the args field like this: `args: --verbose --exclude '**/tests/**'`. Thank you [@pksol](https://github.com/pksol) for the [example](https://github.com/AlexanderMelde/yapf-action/issues/1).

0 comments on commit b65bdf0

Please # to comment.