10000 [fix] bandit reports by motorina0 · Pull Request #2994 · lnbits/lnbits · GitHub
[go: up one dir, main page]

Skip to content

[fix] bandit reports #2994

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

Closed
wants to merge 35 commits into from
Closed

[fix] bandit reports #2994

wants to merge 35 commits into from

Conversation

motorina0
Copy link
Collaborator
@motorina0 motorina0 commented Feb 24, 2025

https://github.com/PyCQA/bandit

poetry run bandit -r -v -r . -c "pyproject.toml"

Temp excluded skips = ["B101"] (should be added back in)

Issue: [B101:assert_used] Use of assert detected. 
The enclosed code will be removed when compiling to optimised byte code.

@motorina0 motorina0 requested a review from dni February 24, 2025 13:35
Copy link
codecov bot commented Feb 24, 2025

Codecov Report

Attention: Patch coverage is 54.70588% with 77 lines in your changes missing coverage. Please review.

Project coverage is 61.45%. Comparing base (ec77a00) to head (9351c10).
Report is 132 commits behind head on dev.

Files with missing lines Patch % Lines
lnbits/wallets/blink.py 20.00% 8 Missing ⚠️
lnbits/core/services/lnurl.py 0.00% 6 Missing ⚠️
lnbits/commands.py 0.00% 5 Missing ⚠️
lnbits/utils/nostr.py 64.28% 5 Missing ⚠️
lnbits/core/migrations.py 0.00% 4 Missing ⚠️
lnbits/core/models/extensions.py 0.00% 4 Missing ⚠️
lnbits/core/services/extensions.py 0.00% 4 Missing ⚠️
lnbits/wallets/corelightningrest.py 63.63% 4 Missing ⚠️
lnbits/wallets/lntips.py 0.00% 4 Missing ⚠️
lnbits/core/crud/payments.py 57.14% 3 Missing ⚠️
... and 17 more
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2994      +/-   ##
==========================================
- Coverage   61.71%   61.45%   -0.26%     
==========================================
  Files         104      104              
  Lines       13128    13168      +40     
==========================================
- Hits         8102     8093       -9     
- Misses       5026     5075      +49     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dni dni marked this pull request as ready for review March 3, 2025 22:47
@dni
Copy link
Member
dni commented Mar 3, 2025

bandit runs in ci now and you can just run it with ruff make ruff

@motorina0 motorina0 marked this pull request as draft April 11, 2025 10:48
@motorina0
Copy link
Collaborator Author

closed in favor of: #3241

@motorina0 motorina0 closed this Jul 4, 2025
@dni dni deleted the add_bandit branch July 8, 2025 06:00
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.

2 participants
0