From 07a8bf4aa39a576d2fb52c3f8327e93253ab1ecb Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Fri, 26 Apr 2024 14:44:37 -0500 Subject: [PATCH] Separate lint for sdk-extension-aws --- .github/workflows/lint_0.yml | 1 + tox.ini | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint_0.yml b/.github/workflows/lint_0.yml index 840a5d46a4..d5bf0fd2fa 100644 --- a/.github/workflows/lint_0.yml +++ b/.github/workflows/lint_0.yml @@ -22,6 +22,7 @@ jobs: # to both GitHub-hosted and self-hosted runners." - "instrumentation-flask" - "resource-detector-container" + - "sdk-extension-aws" os: [ubuntu-20.04] runs-on: ubuntu-20.04 steps: diff --git a/tox.ini b/tox.ini index 7f405727d8..08e0d2cc01 100644 --- a/tox.ini +++ b/tox.ini @@ -14,6 +14,7 @@ envlist = ; opentelemetry-sdk-extension-aws py3{8,9,10,11}-test-sdk-extension-aws pypy3-test-sdk-extension-aws + lint-sdk-extension-aws ; opentelemetry-distro py3{8,9,10,11}-test-distro @@ -752,7 +753,13 @@ commands = test-instrumentation-httpx: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx/tests {posargs} test-instrumentation-asyncio: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncio/tests {posargs} test-util-http: pytest {toxinidir}/util/opentelemetry-util-http/tests {posargs} + test-sdk-extension-aws: pytest {toxinidir}/sdk-extension/opentelemetry-sdk-extension-aws/tests {posargs} + lint-sdk-extension-aws: black --diff --check --config {toxinidir}/pyproject.toml {toxinidir}/sdk-extension/opentelemetry-sdk-extension-aws + lint-sdk-extension-aws: isort --diff --check-only --settings-path {toxinidir}/.isort.cfg {toxinidir}/sdk-extension/opentelemetry-sdk-extension-aws + lint-sdk-extension-aws: flake8 --config {toxinidir}/.flake8 {toxinidir}/instrumentation/opentelemetry-sdk-extension-aws + lint-sdk-extension-aws: pylint {toxinidir}/instrumentation/opentelemetry-sdk-extension-aws/src/opentelemetry + lint-sdk-extension-aws: pylint {toxinidir}/instrumentation/opentelemetry-sdk-extension-aws/tests test-resource-detector-container: pytest {toxinidir}/resource/opentelemetry-resource-detector-container/tests {posargs} lint-resource-detector-container: black --diff --check --config {toxinidir}/pyproject.toml {toxinidir}/resource/opentelemetry-resource-detector-container @@ -862,7 +869,6 @@ commands_pre = pip install -r {toxinidir}/processor/opentelemetry-processor-baggage/test-requirements.txt pip install -r {toxinidir}/propagator/opentelemetry-propagator-aws-xray/test-requirements.txt pip install -r {toxinidir}/propagator/opentelemetry-propagator-ot-trace/test-requirements.txt - pip install -r {toxinidir}/sdk-extension/opentelemetry-sdk-extension-aws/test-requirements.txt pip install -r {toxinidir}/opentelemetry-distro/test-requirements.txt commands =