Skip to content

Commit

Permalink
Clarify check argument is needed for github action workflow (#3325)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Si <[email protected]>
  • Loading branch information
jlplenio and ichard26 authored Oct 15, 2022
1 parent f16333e commit 575220f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/integrations/github_actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ extra. Installing the extra and including Jupyter Notebook files can be configur
`jupyter` (default is `false`).

You can also configure the arguments passed to _Black_ via `options` (defaults to
`'--check --diff'`) and `src` (default is `'.'`)
`'--check --diff'`) and `src` (default is `'.'`). Please note that the
[`--check` flag](labels/exit-code) is required so that the workflow fails if _Black_
finds files that need to be formatted.

Here's an example configuration:

Expand Down
2 changes: 2 additions & 0 deletions docs/usage_and_configuration/the_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ _Black_ to just tell you what it _would_ do without actually rewriting the Pytho
There's two variations to this mode that are independently enabled by their respective
flags. Both variations can be enabled at once.

(labels/exit-code)=

#### Exit code

Passing `--check` will make _Black_ exit with:
Expand Down

1 comment on commit 575220f

@mervy93
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.