Content-Length: 348189 | pFad | http://github.com/oauthlib/oauthlib/pull/901

46 Fixed linter issue, renamed unittest folder to avoid name conflict by cristiprg · Pull Request #901 · oauthlib/oauthlib · GitHub
Skip to content

Fixed linter issue, renamed unittest folder to avoid name conflict #901

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cristiprg
Copy link

@cristiprg cristiprg commented May 21, 2025

Since there is no real reason for this folder to be called "unittest", I renamed it to "unittests". As a bonus, it's also consistent with the folder name "tests", both in the plural form.

https://github.com/oauthlib/oauthlib/actions/runs/13734876394/job/38417326164#step:6:19

@cristiprg cristiprg force-pushed the conflicting-unittest-folder-name branch from 849d269 to 7146670 Compare June 2, 2025 11:03
@cristiprg
Copy link
Author

Thanks for running Github worflows @auvipy! I've fixed the other two linting issues. And also checked ruff on my local and should be all green now 😁

Copy link
Contributor

@auvipy auvipy left a comment

Choose a reason for hiding this comment

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

readme: commands[0]> twine check '.tox/.pkg/dist/'
Checking .tox/.pkg/dist/oauthlib-3.2.2.tar.gz: FAILED
ERROR long_description has syntax errors in markup and would not be
rendered on PyPI.
line 79: Warning: Bullet list ends without a blank line; unexpected
unindent.
readme: exit 1 (0.38 seconds) /home/runner/work/oauthlib/oauthlib> twine check '.tox/.pkg/dist/
' pid=2947

@cristiprg
Copy link
Author

readme: commands[0]> twine check '.tox/.pkg/dist/'
Checking .tox/.pkg/dist/oauthlib-3.2.2.tar.gz: FAILED
ERROR long_description has syntax errors in markup and would not be
rendered on PyPI.
line 79: Warning: Bullet list ends without a blank line; unexpected
unindent.
readme: exit 1 (0.38 seconds) /home/runner/work/oauthlib/oauthlib> twine check '.tox/.pkg/dist/' pid=2947

I tried reproducing that error on my local and it passes. I tried with different python versions 🤔

@cristiprg
Copy link
Author

ooh it might the last commit, merged yesterday 2e203f1

cristiprg added 3 commits June 2, 2025 14:42
Since there is no real reason for this folder to be called "unittest",
I renamed it to "unittests". As a bonus, it's also consistent with the
folder name "tests", both in the plural form.
Fixed the following two issues:
1. Error: oauthlib/oauth2/rfc6749/endpoints/resource.py:84:35:
PLC1802 `len(estimates)` used as condition without comparison

2. Error: tests/oauth2/rfc6749/grant_types/test_refresh_token.py:187:47:
SIM905 Consider using a list literal instead of `str.split`
@cristiprg cristiprg force-pushed the conflicting-unittest-folder-name branch from 7146670 to 09c1f7b Compare June 2, 2025 13:50
@cristiprg
Copy link
Author

cristiprg commented Jun 2, 2025

@auvipy I've rebased on latest master and fixed the indentation issue that slipped in that commit. If I run locally tox -e readme it works on my local now (so hopefully in CI too):

...
readme: commands[0]> twine check '.tox/.pkg/dist/*'
Checking .tox/.pkg/dist/oauthlib-3.2.2.tar.gz: PASSED
  readme: OK (2.61=setup[2.42]+cmd[0.19] seconds)
  congratulations :) (2.66 seconds)

@JonathanHuot JonathanHuot added this to the 3.4.0 milestone Jun 18, 2025
@auvipy
Copy link
Contributor

auvipy commented Jun 18, 2025

we have another merge conflict to fix. may be it would be better to revisit after v3.3.0 release

Co-authored-by: Christian Clauss <cclauss@me.com>
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.

4 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/oauthlib/oauthlib/pull/901

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy