Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions content/master/guides/write-a-composition-function-in-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,21 +451,26 @@ if __name__ == "__main__":
```
{{</expand>}}

Run the unit tests using `hatch run`:
Run the unit tests using `hatch test`:

```shell {copy-lines="1"}
hatch run test:unit
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
❯ hatch test
================================== test session starts ==================================
platform darwin -- Python 3.12.8, pytest-8.3.5, pluggy-1.5.0
rootdir: ./function-template-python
configfile: pyproject.toml
plugins: rerunfailures-14.0, mock-3.14.0, xdist-3.6.1
collected 1 item

OK
tests/test_fn.py . [100%]

=================================== 1 passed in 0.26s ===================================
```

{{<hint "tip">}}
[Hatch](https://hatch.pypa.io/) is a Python build tool. It builds Python
artifacts like wheels. It also manages virtual environments, similar
to `virtualenv` or `venv`. The `hatch run` command creates a virtual environment
to `virtualenv` or `venv`. The `hatch test` command creates a virtual environment
and runs a command in that environment.
{{</hint>}}

Expand Down
19 changes: 12 additions & 7 deletions content/v1.17/guides/write-a-composition-function-in-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,21 +451,26 @@ if __name__ == "__main__":
```
{{</expand>}}

Run the unit tests using `hatch run`:
Run the unit tests using `hatch test`:

```shell {copy-lines="1"}
hatch run test:unit
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
❯ hatch test
================================== test session starts ==================================
platform darwin -- Python 3.12.8, pytest-8.3.5, pluggy-1.5.0
rootdir: ./function-template-python
configfile: pyproject.toml
plugins: rerunfailures-14.0, mock-3.14.0, xdist-3.6.1
collected 1 item

OK
tests/test_fn.py . [100%]

=================================== 1 passed in 0.26s ===================================
```

{{<hint "tip">}}
[Hatch](https://hatch.pypa.io/) is a Python build tool. It builds Python
artifacts like wheels. It also manages virtual environments, similar
to `virtualenv` or `venv`. The `hatch run` command creates a virtual environment
to `virtualenv` or `venv`. The `hatch test` command creates a virtual environment
and runs a command in that environment.
{{</hint>}}

Expand Down
19 changes: 13 additions & 6 deletions content/v1.18/guides/write-a-composition-function-in-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -453,19 +453,26 @@ if __name__ == "__main__":

Run the unit tests using `hatch run`:

Run the unit tests using `hatch test`:

```shell {copy-lines="1"}
hatch run test:unit
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
❯ hatch test
================================== test session starts ==================================
platform darwin -- Python 3.12.8, pytest-8.3.5, pluggy-1.5.0
rootdir: ./function-template-python
configfile: pyproject.toml
plugins: rerunfailures-14.0, mock-3.14.0, xdist-3.6.1
collected 1 item

tests/test_fn.py . [100%]

OK
=================================== 1 passed in 0.26s ===================================
```

{{<hint "tip">}}
[Hatch](https://hatch.pypa.io/) is a Python build tool. It builds Python
artifacts like wheels. It also manages virtual environments, similar
to `virtualenv` or `venv`. The `hatch run` command creates a virtual environment
to `virtualenv` or `venv`. The `hatch test` command creates a virtual environment
and runs a command in that environment.
{{</hint>}}

Expand Down
19 changes: 12 additions & 7 deletions content/v1.19/guides/write-a-composition-function-in-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,21 +451,26 @@ if __name__ == "__main__":
```
{{</expand>}}

Run the unit tests using `hatch run`:
Run the unit tests using `hatch test`:

```shell {copy-lines="1"}
hatch run test:unit
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
❯ hatch test
================================== test session starts ==================================
platform darwin -- Python 3.12.8, pytest-8.3.5, pluggy-1.5.0
rootdir: ./function-template-python
configfile: pyproject.toml
plugins: rerunfailures-14.0, mock-3.14.0, xdist-3.6.1
collected 1 item

OK
tests/test_fn.py . [100%]

=================================== 1 passed in 0.26s ===================================
```

{{<hint "tip">}}
[Hatch](https://hatch.pypa.io/) is a Python build tool. It builds Python
artifacts like wheels. It also manages virtual environments, similar
to `virtualenv` or `venv`. The `hatch run` command creates a virtual environment
to `virtualenv` or `venv`. The `hatch test` command creates a virtual environment
and runs a command in that environment.
{{</hint>}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,21 +451,26 @@ if __name__ == "__main__":
```
{{</expand>}}

Run the unit tests using `hatch run`:
Run the unit tests using `hatch test`:

```shell {copy-lines="1"}
hatch run test:unit
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
❯ hatch test
================================== test session starts ==================================
platform darwin -- Python 3.12.8, pytest-8.3.5, pluggy-1.5.0
rootdir: ./function-template-python
configfile: pyproject.toml
plugins: rerunfailures-14.0, mock-3.14.0, xdist-3.6.1
collected 1 item

OK
tests/test_fn.py . [100%]

=================================== 1 passed in 0.26s ===================================
```

{{<hint "tip">}}
[Hatch](https://hatch.pypa.io/) is a Python build tool. It builds Python
artifacts like wheels. It also manages virtual environments, similar
to `virtualenv` or `venv`. The `hatch run` command creates a virtual environment
to `virtualenv` or `venv`. The `hatch test` command creates a virtual environment
and runs a command in that environment.
{{</hint>}}

Expand Down