You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/misc_0.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -236,8 +236,8 @@ jobs:
236
236
- name: Check github workflows are up to date
237
237
run: git diff --exit-code || (echo 'Generated workflows are out of date, run "tox -e generate-workflows" and commit the changes in this PR.' && exit 1)
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+46-15Lines changed: 46 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ some aspects of development, including testing against multiple Python versions.
45
45
To install `tox`, run:
46
46
47
47
```console
48
-
$ pip install tox
48
+
pip install tox
49
49
```
50
50
51
51
You can run `tox` with the following arguments:
@@ -64,19 +64,36 @@ You can run `tox` with the following arguments:
64
64
-`tox -e public-symbols-check` to run public_symbols_checker.py.
65
65
-`tox -e docker-tests-{otlpexporter,opencensus}` to run tests in both or either one location.
66
66
-`tox -e tracecontext` to run integration tests for tracecontext.
67
+
-`tox -e precommit` to run all `pre-commit` actions
67
68
68
69
`ruff check` and `ruff format` are executed when `tox -e ruff` is run. We strongly recommend you to configure [pre-commit](https://pre-commit.com/) locally to run `ruff` automatically before each commit by installing it as git hooks. You just need to [install pre-commit](https://pre-commit.com/#install) in your environment:
69
70
70
71
```console
71
-
$ pip install pre-commit -c dev-requirements.txt
72
+
pip install pre-commit -c dev-requirements.txt
72
73
```
73
74
74
75
and run this command inside the git repository:
75
76
76
77
```console
77
-
$ pre-commit install
78
+
pre-commit install
78
79
```
79
80
81
+
### Virtual Environment
82
+
83
+
You can also create a single virtual environment to make it easier to run local tests.
84
+
85
+
For that, you'll need to install [`uv`](https://docs.astral.sh/uv/getting-started/installation/).
86
+
87
+
After installing `uv`, you can run the following command:
88
+
89
+
```sh
90
+
uv sync
91
+
```
92
+
93
+
This will create a virtual environment in the `.venv` directory and install all the necessary dependencies.
94
+
95
+
### Public Symbols
96
+
80
97
We try to keep the amount of _public symbols_ in our code minimal. A public symbol is any Python identifier that does not start with an underscore.
81
98
Every public symbol is something that has to be kept in order to maintain backwards compatibility, so we try to have as few as possible.
Some of the `tox` targets install packages from the [OpenTelemetry Python Contrib Repository](https://github.com/open-telemetry/opentelemetry-python.git) via
117
134
pip. The version of the packages installed defaults to the `main` branch in that repository when `tox` is run locally. It is possible to install packages tagged
@@ -157,31 +174,45 @@ pull requests (PRs).
157
174
To create a new PR, fork the project in GitHub and clone the upstream repo:
0 commit comments