Skip to content

[Storage] [Datalake] Fixed all next-pylint errors for azure-storage-file-datalake#46809

Open
weirongw23-msft wants to merge 4 commits intoAzure:mainfrom
weirongw23-msft:weirongw23/datalake-pylint
Open

[Storage] [Datalake] Fixed all next-pylint errors for azure-storage-file-datalake#46809
weirongw23-msft wants to merge 4 commits intoAzure:mainfrom
weirongw23-msft:weirongw23/datalake-pylint

Conversation

@weirongw23-msft
Copy link
Copy Markdown
Member

No description provided.

@weirongw23-msft weirongw23-msft marked this pull request as ready for review May 10, 2026 08:47
Copilot AI review requested due to automatic review settings May 10, 2026 08:47
@github-actions github-actions Bot added the Storage Storage Service (Queues, Blobs, Files) label May 10, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR targets azure-storage-file-datalake by cleaning up next-pylint findings primarily in tests and samples via import ordering, formatting, and a handful of assertion/exception-handling tweaks.

Changes:

  • Reformats and reorganizes imports across tests/samples, and rewrites long literals/calls for lint compliance.
  • Adjusts several test assertions and error-handling branches (e.g., ValueError expectations, fixed replace() usage).
  • Updates perfstress and sample code for lint-friendly structure and exception handling.

Reviewed changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
sdk/storage/azure-storage-file-datalake/tests/test_quick_query.py Reformats test data and assertions; adjusts query tests and error handling.
sdk/storage/azure-storage-file-datalake/tests/test_large_file.py Import/formatting cleanup and decorator formatting.
sdk/storage/azure-storage-file-datalake/tests/test_large_file_async.py Import/formatting cleanup and decorator formatting for async tests.
sdk/storage/azure-storage-file-datalake/tests/test_helpers.py Import ordering and pylint suppression for transport imports.
sdk/storage/azure-storage-file-datalake/tests/test_helpers_async.py Import ordering and pylint suppression for async transport imports.
sdk/storage/azure-storage-file-datalake/tests/test_file.py Import ordering, formatting of long calls/literals, and helper tweaks.
sdk/storage/azure-storage-file-datalake/tests/test_file_system.py Import ordering and more specific exception handling in helpers.
sdk/storage/azure-storage-file-datalake/tests/test_file_system_async.py Import ordering, helper exception handling, and small assertion change.
sdk/storage/azure-storage-file-datalake/tests/test_file_async.py Import ordering and formatting of long calls/literals for async tests.
sdk/storage/azure-storage-file-datalake/tests/test_directory.py Import ordering, formatting, and some assertion fixes.
sdk/storage/azure-storage-file-datalake/tests/test_directory_async.py Import ordering and formatting for async directory tests.
sdk/storage/azure-storage-file-datalake/tests/test_datalake_service_client.py Import ordering and minor loop/style cleanups.
sdk/storage/azure-storage-file-datalake/tests/test_datalake_service_client_async.py Import ordering and minor loop/style cleanups for async.
sdk/storage/azure-storage-file-datalake/tests/test_cpk.py Import ordering cleanup.
sdk/storage/azure-storage-file-datalake/tests/test_cpk_async.py Import ordering cleanup.
sdk/storage/azure-storage-file-datalake/tests/settings/testcase.py Updates pylint disables and environment-variable formatting.
sdk/storage/azure-storage-file-datalake/tests/perfstress_tests/upload.py Consolidates perfstress imports.
sdk/storage/azure-storage-file-datalake/tests/perfstress_tests/_test_base.py Removes unused imports and reformats CLI argument definitions.
sdk/storage/azure-storage-file-datalake/samples/datalake_samples_service_async.py Moves imports to module scope and reformats sample blocks.
sdk/storage/azure-storage-file-datalake/samples/datalake_samples_query.py Adds explicit exception import and refactors formatting/exception handling.

Comment thread sdk/storage/azure-storage-file-datalake/tests/test_quick_query.py
self.dsc.create_file_system(self.filesystem_name)
except:
pass

file_system.create_file_system(timeout=5)
except ResourceExistsError:
pass


except ResourceExistsError:
pass

file_system.create_file_system(timeout=5)
except ResourceExistsError:
pass

Comment thread sdk/storage/azure-storage-file-datalake/tests/test_directory.py
Comment thread sdk/storage/azure-storage-file-datalake/tests/test_quick_query.py
Comment thread sdk/storage/azure-storage-file-datalake/tests/test_quick_query.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants