Skip to content

Commit ee82a5c

Browse files
committed
chore: update py version in lint workflow to 3.13
This upgrade was delayed due to an issue where pylint was unable to import collections.abc Update references to 3.13 now that the underlying issue has been resolved. Add pylint disable comments for existing violations
1 parent 5381509 commit ee82a5c

File tree

24 files changed

+46
-46
lines changed

24 files changed

+46
-46
lines changed

.github/workflows/templates/lint.yml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
- name: Checkout repo @ SHA - ${% raw %}{{ github.sha }}{% endraw %}
2525
uses: actions/checkout@v4
2626

27-
- name: Set up Python 3.12
27+
- name: Set up Python 3.13
2828
uses: actions/setup-python@v5
2929
with:
30-
python-version: "3.12"
30+
python-version: "3.13"
3131

3232
- name: Install tox
3333
run: pip install tox

exporter/opentelemetry-exporter-zipkin-json/src/opentelemetry/exporter/zipkin/json/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797

9898

9999
class ZipkinExporter(SpanExporter):
100-
def __init__(
100+
def __init__( # pylint: disable=too-many-arguments
101101
self,
102102
version: Protocol = Protocol.V2,
103103
endpoint: Optional[str] = None,

opentelemetry-api/src/opentelemetry/_events/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232

3333
class Event(LogRecord):
34-
def __init__(
34+
def __init__( # pylint: disable=too-many-arguments
3535
self,
3636
name: str,
3737
timestamp: Optional[int] = None,

opentelemetry-api/src/opentelemetry/_logs/_internal/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class LogRecord(ABC):
5757
pertinent to the event being logged.
5858
"""
5959

60-
def __init__(
60+
def __init__( # pylint: disable=too-many-arguments
6161
self,
6262
timestamp: Optional[int] = None,
6363
observed_timestamp: Optional[int] = None,

opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def schema_url(self) -> Optional[str]:
232232
"""
233233
return self._schema_url
234234

235-
def _register_instrument(
235+
def _register_instrument( # pylint: disable=too-many-arguments
236236
self,
237237
name: str,
238238
type_: type,

opentelemetry-api/src/opentelemetry/trace/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class Tracer(ABC):
283283
"""
284284

285285
@abstractmethod
286-
def start_span(
286+
def start_span( # pylint: disable=too-many-arguments
287287
self,
288288
name: str,
289289
context: Optional[Context] = None,
@@ -338,7 +338,7 @@ def start_span(
338338

339339
@_agnosticcontextmanager
340340
@abstractmethod
341-
def start_as_current_span(
341+
def start_as_current_span( # pylint: disable=too-many-arguments
342342
self,
343343
name: str,
344344
context: Optional[Context] = None,
@@ -458,7 +458,7 @@ class NoOpTracer(Tracer):
458458
All operations are no-op.
459459
"""
460460

461-
def start_span(
461+
def start_span( # pylint: disable=too-many-arguments
462462
self,
463463
name: str,
464464
context: Optional[Context] = None,
@@ -473,7 +473,7 @@ def start_span(
473473
return INVALID_SPAN
474474

475475
@_agnosticcontextmanager
476-
def start_as_current_span(
476+
def start_as_current_span( # pylint: disable=too-many-arguments
477477
self,
478478
name: str,
479479
context: Optional[Context] = None,

opentelemetry-api/src/opentelemetry/trace/span.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ class SpanContext(
438438
trace_state: Tracing-system-specific info to propagate.
439439
"""
440440

441-
def __new__(
441+
def __new__( # pylint: disable=too-many-arguments
442442
cls,
443443
trace_id: int,
444444
span_id: int,

opentelemetry-api/tests/propagators/test_propagators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def traceparent_helper(
134134

135135
return context
136136

137-
def traceparent_helper_generator(
137+
def traceparent_helper_generator( # pylint: disable=too-many-arguments
138138
self,
139139
version=0x00,
140140
trace_id=0x00000000000000000000000000000001,
@@ -146,7 +146,7 @@ def traceparent_helper_generator(
146146
carrier = {"traceparent": traceparent}
147147
return self.traceparent_helper(carrier)
148148

149-
def valid_traceparent_helper(
149+
def valid_traceparent_helper( # pylint: disable=too-many-arguments
150150
self,
151151
version=0x00,
152152
trace_id=0x00000000000000000000000000000001,
@@ -188,7 +188,7 @@ def valid_traceparent_helper(
188188

189189
return context, span, span_context
190190

191-
def invalid_traceparent_helper(
191+
def invalid_traceparent_helper( # pylint: disable=too-many-arguments
192192
self,
193193
version=0x00,
194194
trace_id=0x00000000000000000000000000000001,

opentelemetry-sdk/src/opentelemetry/sdk/_configuration/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def _import_id_generator(id_generator_name: str) -> IdGenerator:
359359
raise RuntimeError(f"{id_generator_name} is not an IdGenerator")
360360

361361

362-
def _initialize_components(
362+
def _initialize_components( # pylint: disable=too-many-arguments
363363
auto_instrumentation_version: Optional[str] = None,
364364
trace_exporter_names: Optional[List[str]] = None,
365365
metric_exporter_names: Optional[List[str]] = None,

opentelemetry-sdk/src/opentelemetry/sdk/_events/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828

2929
class EventLogger(APIEventLogger):
30-
def __init__(
30+
def __init__( # pylint: disable=too-many-arguments
3131
self,
3232
logger_provider: LoggerProvider,
3333
name: str,

0 commit comments

Comments
 (0)