Skip to content

Commit d9c85de

Browse files
committed
add opencensus e zipkin-proto-http to exclude list
Signed-off-by: emdneto <[email protected]>
1 parent 09c65b1 commit d9c85de

File tree

5 files changed

+28
-21
lines changed

5 files changed

+28
-21
lines changed

.github/workflows/misc_0.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ jobs:
236236
- name: Check github workflows are up to date
237237
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)
238238

239-
pre-commit:
240-
name: pre-commit
239+
precommit:
240+
name: precommit
241241
runs-on: ubuntu-latest
242242
steps:
243243
- name: Checkout repo @ SHA - ${{ github.sha }}
@@ -252,4 +252,4 @@ jobs:
252252
run: pip install tox
253253

254254
- name: Run tests
255-
run: tox -e pre-commit
255+
run: tox -e precommit

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ You can run `tox` with the following arguments:
6060
- `tox -e lint-some-package` to run lint checks on `some-package`
6161
- `tox -e generate-workflows` to run creation of new CI workflows if tox environments have been updated
6262
- `tox -e ruff` to run ruff linter and formatter checks against the entire codebase
63-
- `tox -e pre-commit` to run all `pre-commit` actions
63+
- `tox -e precommit` to run all `pre-commit` actions
6464

6565
`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:
6666

pyproject.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,17 @@ members = [
4242
"opentelemetry-sdk",
4343
"opentelemetry-semantic-conventions",
4444
"opentelemetry-proto",
45-
"exporter/opentelemetry-exporter-otlp-proto-grpc",
46-
"exporter/opentelemetry-exporter-otlp-proto-http",
47-
"exporter/opentelemetry-exporter-otlp-proto-common",
48-
"exporter/opentelemetry-exporter-zipkin-json",
49-
"exporter/opentelemetry-exporter-prometheus",
45+
"exporter/*",
5046
"propagator/*",
5147
"tests/opentelemetry-test-utils",
5248
]
5349

50+
exclude = [
51+
"exporter/opentelemetry-exporter-opencensus",
52+
"exporter/opentelemetry-exporter-zipkin",
53+
"exporter/opentelemetry-exporter-zipkin-proto-http",
54+
]
55+
5456
[tool.pytest.ini_options]
5557
addopts = "-rs -v"
5658
log_cli = true

tox.ini

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ envlist =
9595
public-symbols-check
9696
shellcheck
9797
generate-workflows
98-
pre-commit
98+
precommit
9999

100100
[testenv]
101101
deps =
@@ -358,17 +358,7 @@ commands =
358358
pyright --version
359359
pyright
360360

361-
[testenv:ruff]
362-
basepython: python3
363-
setenv=
364-
SKIP=uv-lock
365-
deps =
366-
-c {toxinidir}/dev-requirements.txt
367-
pre-commit
368-
commands =
369-
pre-commit run --color=always --all-files {posargs}
370-
371-
[testenv:pre-commit]
361+
[testenv:{precommit,ruff}]
372362
basepython: python3
373363
deps =
374364
-c {toxinidir}/dev-requirements.txt

uv.lock

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)