Skip to content

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

Open
cristiprg wants to merge 4 commits intooauthlib:masterfrom
cristiprg:conflicting-unittest-folder-name
Open

Fixed linter issue, renamed unittest folder to avoid name conflict#901
cristiprg wants to merge 4 commits intooauthlib:masterfrom
cristiprg:conflicting-unittest-folder-name

Conversation

@cristiprg
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
Member

@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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

Comment thread oauthlib/oauth2/rfc6749/endpoints/resource.py Outdated
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