diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 059c326f2..fa5b292fb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,8 @@ repos: - id: black language_version: python3 - repo: https://github.com/pycqa/flake8 - rev: 3.9.1 # Use the ref you want to point at + rev: 7.0.0 # Use the ref you want to point at hooks: - id: flake8 - args: ['--config=.flake8'] \ No newline at end of file + args: ['--config=.flake8'] + additional_dependencies: ['importlib_metadata==4.3'] diff --git a/samples/sync-samples/provision_symmetric_key.py b/samples/sync-samples/provision_symmetric_key.py index 40c6a522a..b9cbbaced 100644 --- a/samples/sync-samples/provision_symmetric_key.py +++ b/samples/sync-samples/provision_symmetric_key.py @@ -55,7 +55,7 @@ device_client.send_message(msg) time.sleep(1) - # finally, disconnect - device_client.disconnect() + # finally, disconnect + device_client.disconnect() else: print("Can not send telemetry from the provisioned device")