-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 black-primer
docs
#1427
Add black-primer
docs
#1427
Conversation
- Document the idea, CLI args, config and a example run for `black-primer` in README.md - Add to docs/index.rst
Thanks - I am the typo king :( |
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.
Some little suggestions
README.md
Outdated
@@ -52,7 +53,7 @@ run but you can reformat Python 2 code with it, too. | |||
|
|||
To get started right away with sensible defaults: | |||
|
|||
``` | |||
```console |
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.
```console
is best when you start with a $
and have output to show.
Otherwise, use something like ```bash
or ```sh
```console | |
```bash |
README.md
Outdated
@@ -1068,7 +1069,7 @@ Options: | |||
There is no official blackd client tool (yet!). You can test that blackd is working | |||
using `curl`: | |||
|
|||
``` | |||
```console |
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.
```console | |
```bash |
README.md
Outdated
@@ -1117,6 +1118,124 @@ Apart from the above, `blackd` can produce the following response codes: | |||
The response headers include a `X-Black-Version` header containing the version of | |||
_Black_. | |||
|
|||
## black-primer | |||
|
|||
`black-primer` is a tool built for CI (and humans) to have black `--check` a number of |
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.
`black-primer` is a tool built for CI (and humans) to have black `--check` a number of | |
`black-primer` is a tool built for CI (and humans) to have _Black_ `--check` a number of |
README.md
Outdated
|
||
`black-primer` is a tool built for CI (and humans) to have black `--check` a number of | ||
(configured in `primer.json`) Git accessible projects in parallel. _(A PR will be | ||
accepted to add hg support)_. |
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.
accepted to add hg support)_. | |
accepted to add Mercurial support.)_ |
README.md
Outdated
|
||
- Ensure we have a `black` + `git` in PATH | ||
- Load projects from `primer.json` | ||
- Run projects in parallel with `--worker` workers (defaults to CPU Count / 2) |
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.
- Run projects in parallel with `--worker` workers (defaults to CPU Count / 2) | |
- Run projects in parallel with `--worker` workers (defaults to CPU count / 2) |
README.md
Outdated
{ | ||
"projects": { | ||
"00_Example": { | ||
"cli_arguments": "List of extra CLI arguments to pass black for this project", |
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.
"cli_arguments": "List of extra CLI arguments to pass black for this project", | |
"cli_arguments": "List of extra CLI arguments to pass Black for this project", |
README.md
Outdated
"projects": { | ||
"00_Example": { | ||
"cli_arguments": "List of extra CLI arguments to pass black for this project", | ||
"expect_formatting_changes": "Boolean to indicate that the version of black is expected to cause changes", |
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.
"expect_formatting_changes": "Boolean to indicate that the version of black is expected to cause changes", | |
"expect_formatting_changes": "Boolean to indicate that the version of Black is expected to cause changes", |
README.md
Outdated
"00_Example": { | ||
"cli_arguments": "List of extra CLI arguments to pass black for this project", | ||
"expect_formatting_changes": "Boolean to indicate that the version of black is expected to cause changes", | ||
"git_clone_url": "URL you would pass `git clone` to checkout this repo", |
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.
"git_clone_url": "URL you would pass `git clone` to checkout this repo", | |
"git_clone_url": "URL you would pass `git clone` to check out this repo", |
README.md
Outdated
"expect_formatting_changes": "Boolean to indicate that the version of black is expected to cause changes", | ||
"git_clone_url": "URL you would pass `git clone` to checkout this repo", | ||
"long_checkout": "Boolean to have repo skipped by defauult unless `--long-checkouts` is specified", | ||
"py_versions": "List of major Python versions to run this project with - all will do as you'd expect - Run on ALL versions" |
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.
"py_versions": "List of major Python versions to run this project with - all will do as you'd expect - Run on ALL versions" | |
"py_versions": "List of major Python versions to run this project with - all will do as you'd expect - run on ALL versions" |
README.md
Outdated
} | ||
``` | ||
|
||
### Example Run |
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.
### Example Run | |
### Example run |
Content lgtm. I was wondering if we should break up the massive readme and move these additional tools (along with |
Sure, I would prefer that too. But I feel that’s a different PR where no content changes and also think we should design it together to avoid PR churn? |
Sounds good!
…On Mon, 18 May 2020, 10:42 Cooper Lees, ***@***.***> wrote:
Sure, I would prefer that too. But I feel that’s a different PR where no
content changes and also think we should design it together to avoid PR
churn?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#1427 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAQJNFCGO65X3SQ7IX6K3DRSD7HFANCNFSM4NDRNMJA>
.
|
black-primer
in README.mdAddresses #1390