Skip to content

Commit cc8fd88

Browse files
srikanthccvocelotl
andauthored
Update lint deps and configs (#3533)
Co-authored-by: Diego Hurtado <[email protected]>
1 parent c0576a0 commit cc8fd88

File tree

34 files changed

+88
-79
lines changed

34 files changed

+88
-79
lines changed

.pylintrc

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ limit-inference-results=100
2828

2929
# List of plugins (as comma separated values of python modules names) to load,
3030
# usually to register additional checkers.
31-
load-plugins=
31+
load-plugins=pylint.extensions.no_self_use
3232

3333
# Pickle collected data for later comparisons.
3434
persistent=yes
@@ -68,14 +68,14 @@ disable=missing-docstring,
6868
duplicate-code,
6969
ungrouped-imports, # Leave this up to isort
7070
wrong-import-order, # Leave this up to isort
71-
bad-continuation, # Leave this up to black
7271
line-too-long, # Leave this up to black
7372
exec-used,
7473
super-with-arguments, # temp-pylint-upgrade
7574
isinstance-second-argument-not-valid-type, # temp-pylint-upgrade
7675
raise-missing-from, # temp-pylint-upgrade
7776
unused-argument, # temp-pylint-upgrade
7877
redefined-builtin,
78+
cyclic-import,
7979

8080
# Enable the message, report, category or checker with the given id(s). You can
8181
# either give multiple identifier separated by comma (,) or put this option
@@ -263,13 +263,6 @@ max-line-length=79
263263
# Maximum number of lines in a module.
264264
max-module-lines=1000
265265

266-
# List of optional constructs for which whitespace checking is disabled. `dict-
267-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
268-
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
269-
# `empty-line` allows space-only lines.
270-
no-space-check=trailing-comma,
271-
dict-separator
272-
273266
# Allow the body of a class to be on the same line as the declaration if body
274267
# contains single statement.
275268
single-line-class-stmt=no

dev-requirements.txt

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
pylint==2.11.0
2-
flake8~=3.7
3-
isort~=5.8
4-
black~=22.3.0
5-
httpretty~=1.0
1+
pylint==3.0.2
2+
flake8==6.1.0
3+
isort==5.12.0
4+
black==22.3.0
5+
httpretty==1.1.4
66
mypy==0.931
7-
sphinx~=3.5.4
8-
sphinx-rtd-theme~=0.5
9-
sphinx-autodoc-typehints~=1.12.0
7+
sphinx==7.1.2
8+
sphinx-rtd-theme==2.0.0rc4
9+
sphinx-autodoc-typehints==1.25.2
1010
pytest==7.1.3
11-
pytest-cov>=2.8
12-
readme-renderer~=24.0
13-
# This version of grpcio-tools ships with protoc 3.19.4 which appears to be compatible with
14-
# both protobuf 3.19.x and 4.x (see https://github.com/protocolbuffers/protobuf/issues/11123).
15-
# Bump this version with caution to preserve compatibility with protobuf 3.
16-
# https://github.com/open-telemetry/opentelemetry-python/blob/main/opentelemetry-proto/pyproject.toml#L28
17-
grpcio-tools==1.48.1
18-
mypy-protobuf~=3.0.0
11+
pytest-cov==4.1.0
12+
readme-renderer==42.0
1913
# temporary fix. we should update the jinja, flask deps
2014
# See https://github.com/pallets/markupsafe/issues/282
2115
# breaking change introduced in markupsafe causes jinja, flask to break
@@ -24,3 +18,7 @@ bleach==4.1.0 # This dependency was updated to a breaking version.
2418
codespell==2.1.0
2519
requests==2.31.0
2620
ruamel.yaml==0.17.21
21+
asgiref==3.7.2
22+
psutil==5.9.6
23+
GitPython==3.1.40
24+
flaky==3.7.0

docs-requirements.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
sphinx~=3.5.4
2-
sphinx-rtd-theme~=0.5
3-
sphinx-autodoc-typehints
1+
sphinx==7.1.2
2+
sphinx-rtd-theme==2.0.0rc4
3+
sphinx-autodoc-typehints==1.25.2
44
# used to generate docs for the website
5-
sphinx-jekyll-builder
5+
sphinx-jekyll-builder==0.3.0
66

77
# Need to install the api/sdk in the venv for autodoc. Modifying sys.path
88
# doesn't work for pkg_resources.
99
./opentelemetry-api
1010
./opentelemetry-semantic-conventions
1111
./opentelemetry-sdk
12+
./shim/opentelemetry-opencensus-shim
13+
./shim/opentelemetry-opentracing-shim
1214

1315
# Required by instrumentation and exporter packages
14-
ddtrace>=0.34.0
1516
grpcio~=1.27
16-
Deprecated>=1.2.6
17-
django>=2.2
17+
Deprecated~=1.2
18+
django~=4.2
1819
flask~=1.0
1920
opentracing~=2.2.0
20-
thrift>=0.10.0
21+
thrift~=0.10
2122
wrapt>=1.0.0,<2.0.0
2223
# temporary fix. we should update the jinja, flask deps
2324
# See https://github.com/pallets/markupsafe/issues/282

exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/send.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def __init__(self, thrift_url="", auth=None, timeout_in_millis=None):
125125
if auth is not None:
126126
auth_header = f"{auth[0]}:{auth[1]}"
127127
decoded = base64.b64encode(auth_header.encode()).decode("ascii")
128-
basic_auth = dict(Authorization=f"Basic {decoded}")
128+
basic_auth = {"Authorization": f"Basic {decoded}"}
129129
self.http_transport.setCustomHeaders(basic_auth)
130130

131131
def submit(self, batch: jaeger.Batch):

exporter/opentelemetry-exporter-jaeger/tests/__init__.py

Whitespace-only changes.

exporter/opentelemetry-exporter-otlp-proto-common/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ dependencies = [
3030
"backoff >= 1.10.0, < 3.0.0; python_version>='3.7'",
3131
]
3232

33+
[project.optional-dependencies]
34+
test = []
35+
3336
[project.urls]
3437
Homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-otlp-proto-common"
3538

exporter/opentelemetry-exporter-otlp-proto-common/tests/__init__.py

Whitespace-only changes.

exporter/opentelemetry-exporter-otlp-proto-http/tests/__init__.py

Whitespace-only changes.

exporter/opentelemetry-exporter-otlp-proto-http/tests/metrics/__init__.py

Whitespace-only changes.

exporter/opentelemetry-exporter-otlp/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ dependencies = [
3030
"opentelemetry-exporter-otlp-proto-http == 1.22.0.dev",
3131
]
3232

33+
[project.optional-dependencies]
34+
test = []
35+
3336
[project.entry-points.opentelemetry_logs_exporter]
3437
otlp = "opentelemetry.exporter.otlp.proto.grpc._log_exporter:OTLPLogExporter"
3538

0 commit comments

Comments
 (0)