Skip to content

Breaking - Refactor UserManager.set_ban_status signature. #760

Merged
seapagan merged 6 commits into
mainfrom
update-ruff-and-fix
Jul 5, 2025
Merged

Breaking - Refactor UserManager.set_ban_status signature. #760
seapagan merged 6 commits into
mainfrom
update-ruff-and-fix

Conversation

@seapagan
Copy link
Copy Markdown
Owner

@seapagan seapagan commented Jul 3, 2025

Latest version of ruff exposes a few shoddy boolean-typed-positional issues in some of the functions and methods, fixing.

As a result, the signature of the UserManager.set_ban_status method has changed (boolean flag renamed and moved to end of parameter list. This should generally not be called manually anyway as it is called by the /{user_id}/ban endpoint, but marking this as a potential breaking change anyway.

Test updated to match.

seapagan added 2 commits July 3, 2025 20:54
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
@seapagan seapagan self-assigned this Jul 3, 2025
@seapagan seapagan added the dependencies Pull requests that update a dependency file label Jul 3, 2025
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Jul 3, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00% (target: -1.00%) 100.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (e291ede) 1535 1535 100.00%
Head commit (81f2d85) 1535 (+0) 1535 (+0) 100.00% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#760) 7 7 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

seapagan added 3 commits July 5, 2025 07:15
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
@seapagan seapagan added breaking and removed dependencies Pull requests that update a dependency file labels Jul 5, 2025
@seapagan seapagan changed the title Update ruff and fix resulting linting errors Breaking - Refactor UserManager.set_ban_status signature. Jul 5, 2025
@seapagan seapagan marked this pull request as ready for review July 5, 2025 07:13
@seapagan seapagan merged commit 0fdcc79 into main Jul 5, 2025
16 checks passed
@seapagan seapagan deleted the update-ruff-and-fix branch July 5, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant