Skip to content

Commit d4f587c

Browse files
authored
[Monitor] Enable cspell for monitor packages (Azure#31860)
Signed-off-by: Paul Van Eck <[email protected]>
1 parent 96281d7 commit d4f587c

File tree

5 files changed

+12
-31
lines changed

5 files changed

+12
-31
lines changed

.vscode/cspell.json

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
"sdk/keyvault/azure-keyvault-certificates/tests/certs.py",
7272
"sdk/keyvault/azure-keyvault-keys/tests/keys.py",
7373
"sdk/modelsrepository/azure-iot-modelsrepository/**",
74-
"sdk/monitor/azure-monitor-query/**",
7574
"sdk/servicefabric/azure-servicefabric/**",
7675
"sdk/search/azure-search-documents/**",
7776
"sdk/storage/azure-storage-blob-changefeed/**",
@@ -90,7 +89,6 @@
9089
"sdk/ml/azure-ai-ml/swagger/**",
9190
"sdk/ml/azure-ai-ml/NOTICE.txt",
9291
"sdk/loadtestservice/azure-developer-loadtesting/**",
93-
"sdk/monitor/azure-monitor-ingestion/**",
9492
"sdk/translation/azure-ai-translation-text/azure/ai/translation/text/_serialization.py",
9593
"sdk/translation/azure-ai-translation-text/tests/test_break_sentence.py",
9694
"sdk/translation/azure-ai-translation-text/tests/test_translation.py",
@@ -818,6 +816,13 @@
818816
"pergb"
819817
]
820818
},
819+
{
820+
"filename": "sdk/monitor/azure-monitor-*/**/*",
821+
"words": [
822+
"ctxt",
823+
"wday"
824+
]
825+
},
821826
{
822827
"filename": "sdk/monitor/azure-monitor-opentelemetry*/**/*",
823828
"words": [
@@ -848,32 +853,6 @@
848853
"updown"
849854
]
850855
},
851-
{
852-
"filename": "sdk/monitor/azure-monitor-opentelemetry/azure/monitor/opentelemetry/_vendor/**/*.py",
853-
"words": [
854-
"aiopg",
855-
"asgiref",
856-
"asyncpg",
857-
"boto",
858-
"botocore",
859-
"Cbar",
860-
"funcs",
861-
"grpcio",
862-
"islast",
863-
"libpq",
864-
"owais",
865-
"psutil",
866-
"pydantic",
867-
"pymongo",
868-
"pymysql",
869-
"remoulade",
870-
"setifnotnone",
871-
"sklearn",
872-
"starlette",
873-
"tortoiseorm",
874-
"trysetip"
875-
]
876-
},
877856
{
878857
"filename": "sdk/schemaregistry/**/tests/**/*.py",
879858
"words": [
@@ -1559,4 +1538,4 @@
15591538
}
15601539
],
15611540
"allowCompoundWords": true
1562-
}
1541+
}

sdk/monitor/azure-monitor-ingestion/azure/monitor/ingestion/_helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def _split_chunks(logs: List[JSON], max_size_bytes: int = MAX_CHUNK_SIZE_BYTES)
4242

4343
def _create_gzip_requests(logs: List[JSON]) -> Generator[Tuple[bytes, List[JSON]], None, None]:
4444
for chunk in _split_chunks(logs):
45+
# cspell:ignore wbits
4546
zlib_mode = 16 + zlib.MAX_WBITS # for gzip encoding
4647
_compress = zlib.compressobj(wbits=zlib_mode)
4748
data = _compress.compress(bytes(json.dumps(chunk), encoding="utf-8"))

sdk/monitor/azure-monitor-ingestion/azure/monitor/ingestion/_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class LogsUploadError:
1717
"""Error information for a failed upload to Azure Monitor.
1818
19-
:param error: The error that occured during the upload.
19+
:param error: The error that occurred during the upload.
2020
:type error: Exception
2121
:param failed_logs: The list of logs that failed to upload.
2222
:type failed_logs: list[JSON]

sdk/monitor/azure-monitor-query/azure/monitor/query/_enums.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Licensed under the MIT License. See License.txt in the project root for
55
# license information.
66
# --------------------------------------------------------------------------
7+
# cspell:ignore milli
78
from enum import Enum
89

910
from azure.core import CaseInsensitiveEnumMeta

sdk/monitor/azure-monitor-query/azure/monitor/query/_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Licensed under the MIT License. See License.txt in the project root for
55
# license information.
66
# --------------------------------------------------------------------------
7-
7+
# cspell:ignore milli
88
import uuid
99
from datetime import datetime, timedelta
1010
import sys

0 commit comments

Comments
 (0)