Skip to content

Conversation

@nijel
Copy link
Member

@nijel nijel commented Dec 19, 2025

No description provided.

@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

❌ Patch coverage is 55.73770% with 81 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.99%. Comparing base (7067970) to head (756c028).
⚠️ Report is 19 commits behind head on master.

Files with missing lines Patch % Lines
social_core/backends/azuread_tenant.py 0.00% 9 Missing ⚠️
social_core/backends/orcid.py 38.46% 6 Missing and 2 partials ⚠️
social_core/backends/weixin.py 0.00% 8 Missing ⚠️
social_core/backends/ping.py 0.00% 7 Missing ⚠️
social_core/backends/shopify.py 0.00% 5 Missing ⚠️
social_core/backends/line.py 0.00% 4 Missing ⚠️
social_core/backends/uffd.py 0.00% 4 Missing ⚠️
social_core/backends/vk.py 20.00% 4 Missing ⚠️
social_core/utils.py 55.55% 4 Missing ⚠️
social_core/backends/exacttarget.py 0.00% 3 Missing ⚠️
... and 19 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1499      +/-   ##
==========================================
+ Coverage   78.98%   78.99%   +0.01%     
==========================================
  Files         354      354              
  Lines       11518    11514       -4     
  Branches      531      530       -1     
==========================================
- Hits         9098     9096       -2     
+ Misses       2237     2236       -1     
+ Partials      183      182       -1     
Flag Coverage Δ
unittests 78.99% <55.73%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nijel nijel marked this pull request as ready for review December 19, 2025 09:55
@nijel nijel requested a review from Copilot December 19, 2025 09:55
Copy link
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 pull request introduces pylint as a code quality checker to the CI pipeline. The changes include configuring pylint with appropriate rules, adding a GitHub Actions workflow to run it, and making numerous code improvements to satisfy pylint's requirements.

Key changes:

  • Added pylint 4.0.4 as a development dependency with comprehensive configuration
  • Created a new GitHub Actions workflow for automated pylint checking
  • Refactored code throughout the codebase to improve code quality (f-string conversions, exception chaining, control flow simplifications)

Reviewed changes

Copilot reviewed 97 out of 97 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
.github/workflows/pylint.yml New workflow file to run pylint checks on pushes and pull requests
pyproject.toml Added pylint dependency, configuration with disabled rules, and removed B904/TRY301 from ruff ignore list
social_core/utils.py Modernized string formatting, improved exception chaining, simplified control flow
social_core/storage.py Added pylint disable comment for redefined-builtin
social_core/pipeline/social_auth.py Added pylint disable comment, simplified else-block
social_core/pipeline/disconnect.py Fixed variable shadowing issue by renaming variable
social_core/tests/models.py Added pylint disable comment for redefined-builtin
social_core/tests/test_*.py Added return type annotations to test methods
social_core/tests/backends/base.py Removed unused import
social_core/tests/actions/actions.py Converted string concatenation to f-strings
social_core/backends/*.py Extensive refactoring: f-string conversions, exception chaining, control flow improvements, method refactoring

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Fixes pylint inconsistent-return-statements and no-else-return.
Fixes pylint reimported and unused-import.
Fixes pylint pointless-string-statement.
Copy link
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

Copilot reviewed 100 out of 100 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

search for "little bit different way"
"""
suffix = odnoklassniki_sig("{:s}{:s}".format(data["access_token"], client_secret))
suffix = odnoklassniki_sig(f"{data['access_token']:s}{client_secret:s}")
Copy link

Copilot AI Dec 19, 2025

Choose a reason for hiding this comment

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

The format specifier :s is unnecessary in f-strings for string values. The access_token and client_secret variables are already strings, so the :s suffix is redundant and should be removed for cleaner code.

Copilot uses AI. Check for mistakes.
Copy link
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

Copilot reviewed 100 out of 100 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Fixes pylint undefined-loop-variable and
possibly-used-before-assignment.
Fixes pylint useless-parent-delegation.
Fixes pylint redefined-outer-name.
- store it in a class attribute
- allow to override store in backend
- fixes pylint attribute-defined-outside-init
- remove unneded ones (where generic implementation was improved since
  then)
- fix passed parameters ordering
- fixed return types
- fixes pylint arguments-renamed
- fixes pyright reportIncompatibleMethodOverride
This avoids project wide exception keeping the current code as is (it
would need deep investigation which I cannot perform now).
Fixes pylint no-else-raise.
Fixes pylint raise-missing-from and ruff B904.
This makes the code more readable without deep nesting, fixes pylint
too-many-nested-blocks.
This is currently part of our API, so we can hardly change it.
- This makes the code more readable.
- Fixes pylint consider-using-f-string.
It was previously used by qiita, but manually encoded.
@nijel nijel enabled auto-merge (rebase) December 19, 2025 13:01
@nijel nijel merged commit 89718cd into python-social-auth:master Dec 19, 2025
12 of 13 checks passed
@nijel nijel deleted the pylint branch December 19, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant