Skip to content

Commit 18e056b

Browse files
author
Gal Bashan
authored
Codespell ci (#1237)
1 parent 934af7e commit 18e056b

File tree

30 files changed

+52
-36
lines changed

30 files changed

+52
-36
lines changed

.codespellrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[codespell]
2+
# skipping auto generated folders
3+
skip = ./.tox,./.mypy_cache,./docs/_build,./target,*/LICENSE,./venv
4+
ignore-words-list = ot

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
strategy:
9696
fail-fast: false
9797
matrix:
98-
tox-environment: [ "docker-tests", "lint", "docs", "generate" ]
98+
tox-environment: [ "docker-tests", "spellcheck", "lint", "docs", "generate" ]
9999
name: ${{ matrix.tox-environment }}
100100
runs-on: ubuntu-20.04
101101
steps:

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
440440
([#567](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/567))
441441
- `opentelemetry-instrumentation-grpc` Respect the suppress instrumentation in gRPC client instrumentor
442442
([#559](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/559))
443-
- `opentelemetry-instrumentation-grpc` Fixed asynchonous unary call traces
443+
- `opentelemetry-instrumentation-grpc` Fixed asynchronous unary call traces
444444
([#536](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/536))
445445
- `opentelemetry-sdk-extension-aws` Update AWS entry points to match spec
446446
([#566](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/566))
@@ -736,7 +736,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
736736
([#182](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/182))
737737
- `opentelemetry-instrumentation-botocore` Botocore SpanKind as CLIENT and modify existing traced attributes
738738
([#150](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/150))
739-
- `opentelemetry-instrumentation-dbapi` Update dbapi and its dependant instrumentations to follow semantic conventions
739+
- `opentelemetry-instrumentation-dbapi` Update dbapi and its dependent instrumentations to follow semantic conventions
740740
([#195](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/195))
741741
- `opentelemetry-instrumentation-dbapi` Stop capturing query parameters by default
742742
([#156](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/156))

CONTRIBUTING.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ You can run:
4444
- `tox -e py37-test-flask` to e.g. run the Flask tests under a specific
4545
Python version
4646
- `tox -e lint` to run lint checks on all code
47+
- `tox -e spellcheck` to run spell check on the code
4748

4849
See
4950
[`tox.ini`](https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/tox.ini)
@@ -172,7 +173,7 @@ The continuation integration overrides that environment variable with as per the
172173

173174
* docstrings should adhere to the [Google Python Style
174175
Guide](http://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings)
175-
as specified with the [napolean
176+
as specified with the [napoleon
176177
extension](http://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html#google-vs-numpy)
177178
extension in [Sphinx](http://www.sphinx-doc.org/en/master/index.html).
178179

@@ -194,7 +195,7 @@ Below is a checklist of things to be mindful of when implementing a new instrume
194195
- https://github.com/open-telemetry/opentelemetry-python-contrib/issues/344 for more context
195196
- `exclude_urls` functionality
196197
- ex. https://github.com/open-telemetry/opentelemetry-python-contrib/blob/0fcb60d2ad139f78a52edd85b1cc4e32f2e962d0/instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask/__init__.py#L91
197-
- `url_filter` functonality
198+
- `url_filter` functionality
198199
- ex. https://github.com/open-telemetry/opentelemetry-python-contrib/blob/0fcb60d2ad139f78a52edd85b1cc4e32f2e962d0/instrumentation/opentelemetry-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client/__init__.py#L235
199200
- `is_recording()` optimization on non-sampled spans
200201
- ex. https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-requests/src/opentelemetry/instrumentation/requests/__init__.py#L133
@@ -204,5 +205,5 @@ Below is a checklist of things to be mindful of when implementing a new instrume
204205

205206
## Expectations from contributors
206207

207-
OpenTelemetry is an open source community, and as such, greatly encourages contributions from anyone interested in the project. With that being said, there is a certain level of expectation from contributors even after a pull request is merged, specifically pertaining to instrumentations. The OpenTelemetry Python community expects contributors to maintain a level of support and interest in the instrumentations they contribute. This is to ensure that the instrumentation does not become stale and still functions the way the original contributor intended. Some instrumentations also pertain to libraries that the current memebers of the community are not so familiar with, so it is necessary to rely on the expertise of the original contributing parties.
208+
OpenTelemetry is an open source community, and as such, greatly encourages contributions from anyone interested in the project. With that being said, there is a certain level of expectation from contributors even after a pull request is merged, specifically pertaining to instrumentations. The OpenTelemetry Python community expects contributors to maintain a level of support and interest in the instrumentations they contribute. This is to ensure that the instrumentation does not become stale and still functions the way the original contributor intended. Some instrumentations also pertain to libraries that the current members of the community are not so familiar with, so it is necessary to rely on the expertise of the original contributing parties.
208209

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ grpcio-tools==1.29.0
1515
mypy-protobuf>=1.23
1616
protobuf~=3.13
1717
markupsafe==2.0.1
18+
codespell==2.1.0

exporter/opentelemetry-exporter-datadog/src/opentelemetry/exporter/datadog/exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def _translate_to_datadog(self, spans):
127127

128128
# datadog Span is initialized with a reference to the tracer which is
129129
# used to record the span when it is finished. We can skip ignore this
130-
# because we are not calling the finish method and explictly set the
130+
# because we are not calling the finish method and explicitly set the
131131
# duration.
132132
tracer = None
133133

exporter/opentelemetry-exporter-datadog/src/opentelemetry/exporter/datadog/spanprocessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def worker(self):
127127
# missing spans will be sent when calling flush
128128
break
129129

130-
# substract the duration of this export call to the next timeout
130+
# subtract the duration of this export call to the next timeout
131131
start = time_ns()
132132
self.export()
133133
end = time_ns()

instrumentation/opentelemetry-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def strip_query_params(url: yarl.URL) -> str:
5959
Request/Response hooks
6060
**********************
6161
62-
Utilize request/reponse hooks to execute custom logic to be performed before/after performing a request.
62+
Utilize request/response hooks to execute custom logic to be performed before/after performing a request.
6363
6464
.. code-block:: python
6565

instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ async def hello():
7171
Request/Response hooks
7272
**********************
7373
74-
Utilize request/reponse hooks to execute custom logic to be performed before/after performing a request. The server request hook takes in a server span and ASGI
75-
scope object for every incoming request. The client request hook is called with the internal span and an ASGI scope which is sent as a dictionary for when the method recieve is called.
74+
Utilize request/response hooks to execute custom logic to be performed before/after performing a request. The server request hook takes in a server span and ASGI
75+
scope object for every incoming request. The client request hook is called with the internal span and an ASGI scope which is sent as a dictionary for when the method receive is called.
7676
The client response hook is called with the internal span and an ASGI event which is sent as a dictionary for when the method send is called.
7777
7878
.. code-block:: python
@@ -379,7 +379,7 @@ class OpenTelemetryMiddleware:
379379
server_request_hook: Optional callback which is called with the server span and ASGI
380380
scope object for every incoming request.
381381
client_request_hook: Optional callback which is called with the internal span and an ASGI
382-
scope which is sent as a dictionary for when the method recieve is called.
382+
scope which is sent as a dictionary for when the method receive is called.
383383
client_response_hook: Optional callback which is called with the internal span and an ASGI
384384
event which is sent as a dictionary for when the method send is called.
385385
tracer_provider: The optional tracer provider to use. If omitted

instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py

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

1515
"""
1616
The opentelemetry-instrumentation-aws-lambda package provides an `Instrumentor`
17-
to traces calls whithin a Python AWS Lambda function.
17+
to traces calls within a Python AWS Lambda function.
1818
1919
Usage
2020
-----

0 commit comments

Comments
 (0)