Skip to content

Commit

Permalink
Upgrade black version to fix dependency issue (GoogleCloudPlatform#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
aabmass authored Apr 1, 2022
1 parent 93cac30 commit 02b720c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dev-constraints.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
black==21.5b2
black==22.3.0
flake8==3.9.2
isort==5.8.0
mypy==0.910
Expand Down
4 changes: 2 additions & 2 deletions opentelemetry-exporter-gcp-monitoring/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ package_dir=
packages=find_namespace:
install_requires =
google-cloud-monitoring <2.0.0
opentelemetry-api ~= 1.10a0
opentelemetry-sdk ~= 1.10a0
opentelemetry-api == 1.10a0
opentelemetry-sdk == 1.10a0

[options.packages.find]
where = src
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
MAX_BATCH_WRITE = 200
WRITE_INTERVAL = 10
UNIQUE_IDENTIFIER_KEY = "opentelemetry_id"
NANOS_PER_SECOND = 10 ** 9
NANOS_PER_SECOND = 10**9

OT_RESOURCE_LABEL_TO_GCP = {
"gce_instance": {
Expand Down Expand Up @@ -95,7 +95,7 @@ def __init__(
self.unique_identifier = None
if add_unique_identifier:
self.unique_identifier = "{:08x}".format(
random.randint(0, 16 ** 8)
random.randint(0, 16**8)
)

(
Expand Down

0 comments on commit 02b720c

Please sign in to comment.