Skip to content
Myr

Revert "Removed leading $ from cli code blocks" (#3192)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by GitHub · parent d4961b9 · Browse files · 5 files+20 added−20 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>

Diff stats

5 files+20 added−20 removed

  • other:+20 added−20 removed

5 files+20 added−20 removed

modified:docs/advanced/proxies.md+1 added-1 removed
modified:docs/contributing.md+9 added-9 removed
44 unmodified lines
45Then clone your fork with the following command replacing `YOUR-USERNAME` with46your GitHub username:4748```shell49git clone https://github.com/YOUR-USERNAME/httpx49$ git clone https://github.com/YOUR-USERNAME/httpx50```5152You can now install the project and its dependencies using:5354```shell55cd httpx56scripts/install55$ cd httpx56$ scripts/install57```5859## Testing and Linting60
2 unmodified lines
6364To run the tests, use:6566```shell67scripts/test67$ scripts/test68```6970!!! warning71 The test suite spawns testing servers on ports **8000** and **8001**.
3 unmodified lines
7576For example, to run a single test script:7778```shell79scripts/test tests/test_multipart.py79$ scripts/test tests/test_multipart.py80```8182To run the code auto-formatting:8384```shell85scripts/lint85$ scripts/lint86```8788Lastly, to run code checks separately (they are also run as part of `scripts/test`), run:8990```shell91scripts/check91$ scripts/check92```9394## Documenting95
1 unmodified line
9798To run the documentation site locally (useful for previewing changes), use:99100```shell101scripts/docs101$ scripts/docs102```103104## Resolving Build / CI Failures105
15 unmodified lines
121This job failing means there is either a code formatting issue or type-annotation issue.122You can look at the job output to figure out why it's failed or within a shell run:123124```shell125scripts/check125$ scripts/check126```127128It may be worth it to run `$ scripts/lint` to attempt auto-formatting the code129and if that job succeeds commit the changes.
106 unmodified lines
modified:docs/http2.md+1 added-1 removed
modified:docs/index.md+5 added-5 removed
26 unmodified lines
2728Install HTTPX using pip:2930```shell31pip install httpx31$ pip install httpx32```3334Now, let's get started:35
13 unmodified lines
49Or, using the command-line client.5051```shell52# The command line client is an optional dependency.53pip install 'httpx[cli]'53$ pip install 'httpx[cli]'54```5556Which now allows us to use HTTPX directly from the command-line...57
71 unmodified lines
129130Install with pip:131132```shell133pip install httpx133$ pip install httpx134```135136Or, to include the optional HTTP/2 support, use:137138```shell139pip install httpx[http2]139$ pip install httpx[http2]140```141142To include the optional brotli and zstandard decoders support, use:143144```shell145pip install httpx[brotli,zstd]145$ pip install httpx[brotli,zstd]146```147148HTTPX requires Python 3.8+149
1 unmodified line
modified:README.md+4 added-4 removed
20 unmodified lines
2122Install HTTPX using pip:2324```shell25pip install httpx25$ pip install httpx26```2728Now, let's get started:29
12 unmodified lines
4243Or, using the command-line client.4445```shell46pip install 'httpx[cli]' # The command line client is an optional dependency.46$ pip install 'httpx[cli]' # The command line client is an optional dependency.47```4849Which now allows us to use HTTPX directly from the command-line...50
42 unmodified lines
9394Install with pip:9596```shell97pip install httpx97$ pip install httpx98```99100Or, to include the optional HTTP/2 support, use:101102```shell103pip install httpx[http2]103$ pip install httpx[http2]104```105106HTTPX requires Python 3.8+.107
42 unmodified lines