Skip to content

Commit

Permalink
keep lint CI using py312
Browse files Browse the repository at this point in the history
Signed-off-by: emdneto <[email protected]>
  • Loading branch information
emdneto committed Dec 18, 2024
1 parent c508ab6 commit da23f15
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 45 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/lint_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -41,10 +41,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -59,10 +59,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -77,10 +77,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -95,10 +95,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -113,10 +113,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -131,10 +131,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -149,10 +149,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -167,10 +167,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -185,10 +185,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -203,10 +203,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -221,10 +221,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -239,10 +239,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -257,10 +257,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -275,10 +275,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -293,10 +293,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -311,10 +311,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -329,10 +329,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand All @@ -347,10 +347,10 @@ jobs:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/templates/lint.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
- name: Checkout repo @ SHA - ${% raw %}{{ github.sha }}{% endraw %}
uses: actions/checkout@v4

- name: Set up Python 3.13
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"

- name: Install tox
run: pip install tox
Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-api/src/opentelemetry/attributes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import logging
import threading
from collections import OrderedDict
from collections.abc import MutableMapping # pylint: disable=import-error
from collections.abc import MutableMapping
from typing import Optional, Sequence, Tuple, Union

from opentelemetry.util import types
Expand Down
5 changes: 1 addition & 4 deletions opentelemetry-sdk/src/opentelemetry/sdk/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
import datetime
import threading
from collections import deque
from collections.abc import ( # pylint: disable=import-error
MutableMapping,
Sequence,
)
from collections.abc import MutableMapping, Sequence
from typing import Optional

from deprecated import deprecated
Expand Down

0 comments on commit da23f15

Please sign in to comment.