Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce pylint on unit and integration test code #953

Merged
merged 22 commits into from
Feb 19, 2024
Merged

Enforce pylint on unit and integration test code #953

merged 22 commits into from
Feb 19, 2024

Conversation

nfx
Copy link
Collaborator

@nfx nfx commented Feb 16, 2024

This PR reduces the code review overhead

@nfx nfx requested review from a team and dipankarkush-db February 16, 2024 21:45
Copy link

codecov bot commented Feb 16, 2024

Codecov Report

Attention: 46 lines in your changes are missing coverage. Please review.

Comparison is base (93a6248) 87.94% compared to head (d9d29af) 87.78%.

Files Patch % Lines
src/databricks/labs/ucx/azure/resources.py 56.75% 8 Missing and 8 partials ⚠️
src/databricks/labs/ucx/install.py 66.66% 5 Missing and 5 partials ⚠️
src/databricks/labs/ucx/assessment/clusters.py 60.00% 3 Missing and 3 partials ⚠️
src/databricks/labs/ucx/assessment/aws.py 83.33% 2 Missing and 2 partials ⚠️
src/databricks/labs/ucx/cli.py 86.66% 2 Missing and 2 partials ⚠️
src/databricks/labs/ucx/hive_metastore/grants.py 80.00% 2 Missing ⚠️
src/databricks/labs/ucx/framework/tasks.py 83.33% 1 Missing ⚠️
src/databricks/labs/ucx/hive_metastore/mapping.py 66.66% 0 Missing and 1 partial ⚠️
...c/databricks/labs/ucx/hive_metastore/table_size.py 0.00% 0 Missing and 1 partial ⚠️
src/databricks/labs/ucx/hive_metastore/udfs.py 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #953      +/-   ##
==========================================
- Coverage   87.94%   87.78%   -0.17%     
==========================================
  Files          44       44              
  Lines        5285     5305      +20     
  Branches      948      948              
==========================================
+ Hits         4648     4657       +9     
- Misses        433      438       +5     
- Partials      204      210       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nfx nfx requested a review from nkvuong February 19, 2024 14:01
@nfx nfx merged commit 05851e6 into main Feb 19, 2024
4 of 7 checks passed
@nfx nfx deleted the pylint/test branch February 19, 2024 14:02
nfx added a commit that referenced this pull request Feb 21, 2024
* Added secret detection logic to Azure service principal crawler ([#950](#950)).
* Create storage credentials based on instance profiles and existing roles ([#869](#869)).
* Enforced `protected-access` pylint rule ([#956](#956)).
* Enforced `pylint` on unit and integration test code ([#953](#953)).
* Enforcing `invalid-name` pylint rule ([#957](#957)).
* Fixed AzureResourcePermissions.load to call Installation.load ([#962](#962)).
* Fixed installer script to reuse an existing UCX Cluster policy if present ([#964](#964)).
* More `pylint` tuning ([#958](#958)).
* Refactor `workspace_client_mock` to have combine fixtures stored in separate JSON files ([#955](#955)).

Dependency updates:

 * Updated databricks-sdk requirement from ~=0.19.0 to ~=0.20.0 ([#961](#961)).
@nfx nfx mentioned this pull request Feb 21, 2024
nfx added a commit that referenced this pull request Feb 21, 2024
* Added secret detection logic to Azure service principal crawler
([#950](#950)).
* Create storage credentials based on instance profiles and existing
roles ([#869](#869)).
* Enforced `protected-access` pylint rule
([#956](#956)).
* Enforced `pylint` on unit and integration test code
([#953](#953)).
* Enforcing `invalid-name` pylint rule
([#957](#957)).
* Fixed AzureResourcePermissions.load to call Installation.load
([#962](#962)).
* Fixed installer script to reuse an existing UCX Cluster policy if
present ([#964](#964)).
* More `pylint` tuning
([#958](#958)).
* Refactor `workspace_client_mock` to have combine fixtures stored in
separate JSON files
([#955](#955)).

Dependency updates:

* Updated databricks-sdk requirement from ~=0.19.0 to ~=0.20.0
([#961](#961)).
dmoore247 pushed a commit that referenced this pull request Mar 23, 2024
This PR reduces the code review overhead
dmoore247 pushed a commit that referenced this pull request Mar 23, 2024
* Added secret detection logic to Azure service principal crawler
([#950](#950)).
* Create storage credentials based on instance profiles and existing
roles ([#869](#869)).
* Enforced `protected-access` pylint rule
([#956](#956)).
* Enforced `pylint` on unit and integration test code
([#953](#953)).
* Enforcing `invalid-name` pylint rule
([#957](#957)).
* Fixed AzureResourcePermissions.load to call Installation.load
([#962](#962)).
* Fixed installer script to reuse an existing UCX Cluster policy if
present ([#964](#964)).
* More `pylint` tuning
([#958](#958)).
* Refactor `workspace_client_mock` to have combine fixtures stored in
separate JSON files
([#955](#955)).

Dependency updates:

* Updated databricks-sdk requirement from ~=0.19.0 to ~=0.20.0
([#961](#961)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant