Skip to content
New issue

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

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

Already on GitHub? # to your account

removed explicit object inheritance #6686

Conversation

AndrewChubatiuk
Copy link
Contributor

What type of PR is this?

Removed unneeded explicit inheritance from object

  • Refactor
  • Feature
  • Bug Fix
  • New Query Runner (Data Source)
  • New Alert Destination
  • Other

@AndrewChubatiuk AndrewChubatiuk mentioned this pull request Jan 3, 2024
10 tasks
Copy link

codecov bot commented Jan 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (998dc31) 63.28% compared to head (58576b2) 63.28%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6686   +/-   ##
=======================================
  Coverage   63.28%   63.28%           
=======================================
  Files         162      162           
  Lines       13313    13313           
  Branches     1817     1817           
=======================================
  Hits         8425     8425           
  Misses       4599     4599           
  Partials      289      289           
Files Coverage Δ
redash/destinations/__init__.py 78.26% <100.00%> (ø)
redash/models/__init__.py 91.75% <100.00%> (ø)
redash/models/base.py 86.66% <100.00%> (ø)
redash/models/changes.py 90.19% <100.00%> (ø)
redash/models/mixins.py 100.00% <100.00%> (ø)
redash/models/parameterized_query.py 97.56% <100.00%> (ø)
redash/models/users.py 94.80% <100.00%> (ø)
redash/permissions.py 94.28% <100.00%> (ø)
redash/query_runner/__init__.py 78.09% <100.00%> (ø)
redash/query_runner/athena.py 50.81% <100.00%> (ø)
... and 6 more

Copy link
Collaborator

@eradman eradman left a comment

Choose a reason for hiding this comment

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

I'm fine with this change. We would also want to add this check to ruff

+++ b/pyproject.toml
@@ -169,7 +169,7 @@ build-backend = "poetry.core.masonry.api"
 [tool.ruff]
 exclude = [".git", "viz-lib", "node_modules", "migrations"]
 ignore = ["E501"]
-select = ["C9", "E", "F", "W", "I001"]
+select = ["C9", "E", "F", "W", "I001", "UP004"]

@AndrewChubatiuk
Copy link
Contributor Author

@eradman done

@masayuki038
Copy link
Collaborator

@AndrewChubatiuk Thanks for separating the PR.

@masayuki038
Copy link
Collaborator

@eradman Thanks for your review. I didn't find that we should update ruff settings.

Copy link
Collaborator

@masayuki038 masayuki038 left a comment

Choose a reason for hiding this comment

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

I confirmed this updates all classes to be fixed. I will merge this.

@masayuki038 masayuki038 merged commit cbde237 into getredash:master Jan 5, 2024
13 checks passed
@AndrewChubatiuk AndrewChubatiuk deleted the removed-explicit-inheritance-from-object branch January 18, 2024 15:20
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Jan 8, 2025
* removed explicit object inheritance

* minor fix

* pr comments

---------

Co-authored-by: Andrew Chubatiuk <andrew.chubatiuk@motional.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants