Skip to content

Commit 7206ed1

Browse files
authored
Merge pull request #288 from espressif/docs/improve_latest_feature
2 parents edbcdc1 + 835fe17 commit 7206ed1

22 files changed

+550
-476
lines changed

.pre-commit-config.yaml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,38 @@ exclude: |
88
99
repos:
1010
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v4.5.0
11+
rev: v4.6.0
1212
hooks:
1313
- id: trailing-whitespace
1414
- id: end-of-file-fixer
1515
- id: mixed-line-ending
16-
args: [ '-f=lf' ]
16+
args: ["-f=lf"]
1717
- repo: https://github.com/charliermarsh/ruff-pre-commit
18-
rev: 'v0.3.0'
18+
rev: "v0.4.3"
1919
hooks:
2020
- id: ruff
21-
args: ['--fix', '--preview']
21+
args: ["--fix", "--preview"]
2222
- id: ruff-format
23-
args: ['--preview']
23+
args: ["--preview"]
24+
25+
# documentation
26+
- repo: https://github.com/sphinx-contrib/sphinx-lint
27+
rev: v0.9.1
28+
hooks:
29+
- id: sphinx-lint
30+
args: [--enable=default-role]
31+
- repo: https://github.com/dzhu/rstfmt
32+
rev: v0.0.14
33+
hooks:
34+
- id: rstfmt
35+
args: ["-w", "-1"]
36+
files: \.rst$
37+
38+
# git commit
2439
- repo: https://github.com/espressif/conventional-precommit-linter
25-
rev: v1.6.0
40+
rev: v1.8.0
2641
hooks:
2742
- id: conventional-precommit-linter
2843
stages: [commit-msg]
29-
args: ['--types=chore,change,ci,docs,feat,fix,refactor,remove,revert,bump']
44+
args:
45+
["--types=chore,change,ci,docs,feat,fix,refactor,remove,revert,bump"]

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ A pytest plugin that has multiple services available for various functionalities
66

77
## Installation
88

9-
All packages are published to PyPI. Please install them via `pip`.
10-
119
[![pytest-embedded](https://img.shields.io/pypi/v/pytest-embedded?color=green&label=pytest-embedded)](https://pypi.org/project/pytest-embedded/)
1210
[![pytest-embedded-serial](https://img.shields.io/pypi/v/pytest-embedded-serial?color=green&label=pytest-embedded-serial)](https://pypi.org/project/pytest-embedded-serial/)
1311
[![pytest-embedded-serial-esp](https://img.shields.io/pypi/v/pytest-embedded-serial-esp?color=green&label=pytest-embedded-serial-esp)](https://pypi.org/project/pytest-embedded-serial-esp/)
@@ -16,9 +14,17 @@ All packages are published to PyPI. Please install them via `pip`.
1614
[![pytest-embedded-arduino](https://img.shields.io/pypi/v/pytest-embedded-arduino?color=green&label=pytest-embedded-arduino)](https://pypi.org/project/pytest-embedded-arduino/)
1715
[![pytest-embedded-wokwi](https://img.shields.io/pypi/v/pytest-embedded-wokwi?color=green&label=pytest-embedded-wokwi)](https://pypi.org/project/pytest-embedded-wokwi/)
1816

19-
## Quick Example
17+
Packages under this repo mainly use semantic versioning. Sometimes a bug fix version may contain some non-breaking new features as well.
18+
19+
It is recommended to use `~=1.0` to get rid of breaking changes, and use the latest new features. For example,
20+
21+
```shell
22+
pip install -U pytest-embedded~=1.0
23+
```
24+
25+
## Quickstart
2026

21-
- `pip install pytest-embedded`
27+
- `pip install -U pytest-embedded~=1.0`
2228
- Create a file `test_basic.py`
2329

2430
```python
@@ -60,8 +66,7 @@ The `print` line is also duplicated to console output.
6066

6167
## Extra Services
6268

63-
You can activate more services with `pytest --embedded-services service[,service]` to enable extra fixtures and functionalities.
64-
These services are provided by several optional dependencies. You can install them via `pip` as well.
69+
You can activate more services with `pytest --embedded-services service[,service]` to enable extra fixtures and functionalities. These services are provided by several optional dependencies. You can install them via `pip` as well.
6570

6671
Available services:
6772

@@ -77,7 +82,3 @@ Available services:
7782

7883
- Documentation is hosted at [https://docs.espressif.com/projects/pytest-embedded/en/latest/](https://docs.espressif.com/projects/pytest-embedded/en/latest/)
7984
- More examples under [examples](https://github.com/espressif/pytest-embedded/tree/main/examples)
80-
81-
## Versioning
82-
83-
Packages under this repo mainly use semantic versioning. Sometimes a bug fix version may contain some non-breaking new features as well. It is recommended to use `pytest-embdded~=1.0` to get rid of breaking changes, and use the latest new features.

docs/api.rst

Lines changed: 0 additions & 141 deletions
This file was deleted.

docs/apis/pytest-embedded-arduino.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#########################
2+
pytest-embedded-arduino
3+
#########################
4+
5+
.. automodule:: pytest_embedded_arduino.app
6+
:members:
7+
:undoc-members:
8+
:show-inheritance:
9+
10+
.. automodule:: pytest_embedded_arduino.serial
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:

docs/apis/pytest-embedded-idf.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#####################
2+
pytest-embedded-idf
3+
#####################
4+
5+
.. automodule:: pytest_embedded_idf.app
6+
:members:
7+
:undoc-members:
8+
:show-inheritance:
9+
10+
.. automodule:: pytest_embedded_idf.dut
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
.. automodule:: pytest_embedded_idf.linux
16+
:members:
17+
:undoc-members:
18+
:show-inheritance:
19+
20+
.. automodule:: pytest_embedded_idf.serial
21+
:members:
22+
:undoc-members:
23+
:show-inheritance:
24+
25+
.. automodule:: pytest_embedded_idf.unity_tester
26+
:members:
27+
:undoc-members:
28+
:show-inheritance:

docs/apis/pytest-embedded-jtag.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
######################
2+
pytest-embedded-jtag
3+
######################
4+
5+
.. automodule:: pytest_embedded_jtag.gdb
6+
:members:
7+
:undoc-members:
8+
:show-inheritance:
9+
10+
.. automodule:: pytest_embedded_jtag.openocd
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:

docs/apis/pytest-embedded-qemu.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
######################
2+
pytest-embedded-qemu
3+
######################
4+
5+
.. automodule:: pytest_embedded_qemu.app
6+
:members:
7+
:undoc-members:
8+
:show-inheritance:
9+
10+
.. automodule:: pytest_embedded_qemu.dut
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
.. automodule:: pytest_embedded_qemu.qemu
16+
:members:
17+
:undoc-members:
18+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
############################
2+
pytest-embedded-serial-esp
3+
############################
4+
5+
.. automodule:: pytest_embedded_serial_esp.serial
6+
:members:
7+
:undoc-members:
8+
:show-inheritance:

docs/apis/pytest-embedded-serial.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
########################
2+
pytest-embedded-serial
3+
########################
4+
5+
.. automodule:: pytest_embedded_serial.dut
6+
:members:
7+
:undoc-members:
8+
:show-inheritance:
9+
10+
.. automodule:: pytest_embedded_serial.serial
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:

docs/apis/pytest-embedded-wokwi.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#######################
2+
pytest-embedded-wokwi
3+
#######################
4+
5+
.. automodule:: pytest_embedded_wokwi.arduino
6+
:members:
7+
:undoc-members:
8+
:show-inheritance:
9+
10+
.. automodule:: pytest_embedded_wokwi.dut
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
.. automodule:: pytest_embedded_wokwi.idf
16+
:members:
17+
:undoc-members:
18+
:show-inheritance:
19+
20+
.. automodule:: pytest_embedded_wokwi.wokwi_cli
21+
:members:
22+
:undoc-members:
23+
:show-inheritance:

docs/apis/pytest-embedded.rst

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#################
2+
pytest-embedded
3+
#################
4+
5+
.. automodule:: pytest_embedded.app
6+
:members:
7+
:undoc-members:
8+
:show-inheritance:
9+
10+
.. automodule:: pytest_embedded.dut
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
.. automodule:: pytest_embedded.dut_factory
16+
:members:
17+
:undoc-members:
18+
:show-inheritance:
19+
20+
.. automodule:: pytest_embedded.log
21+
:members:
22+
:undoc-members:
23+
:show-inheritance:
24+
25+
.. automodule:: pytest_embedded.plugin
26+
:members:
27+
:undoc-members:
28+
:show-inheritance:
29+
30+
.. automodule:: pytest_embedded.unity
31+
:members:
32+
:undoc-members:
33+
:show-inheritance:
34+
35+
.. automodule:: pytest_embedded.utils
36+
:members:
37+
:undoc-members:
38+
:show-inheritance:
File renamed without changes.

0 commit comments

Comments
 (0)