Skip to content

Conversation

@mbdevpl
Copy link
Owner

@mbdevpl mbdevpl commented Apr 22, 2025

No description provided.

@mbdevpl mbdevpl self-assigned this Apr 22, 2025
@jenkins-mbdev
Copy link

jenkins-mbdev bot commented Apr 22, 2025

Tools report for GitHub-mbdevpl/argunparse/PR-6 [build #2]:

  • Pylint: errors ❗ (click for details)
    ************* Module argunparse.argument_unparser
    argunparse/argument_unparser.py:23:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
    argunparse/argument_unparser.py:73:34: E0606: Possibly using variable 'unparsed_value' before assignment (possibly-used-before-assignment)
    argunparse/argument_unparser.py:77:20: E0606: Possibly using variable 'unparsed_option' before assignment (possibly-used-before-assignment)
    
    -----------------------------------
    Your code has been rated at 9.52/10
    
  • Mypy: problems ⚠️ (click for details)
    test/examples.py:20: error: "object" has no attribute "items"  [attr-defined]
    test/examples.py:38: error: Need type annotation for "ARGUMENTS_SKIPPED" (hint: "ARGUMENTS_SKIPPED: dict[<type>, <type>] = ...")  [var-annotated]
    argunparse/argument_unparser.py:114: error: Unsupported operand types for + ("str" and "list[str]")  [operator]
    argunparse/argument_unparser.py:114: error: No overload variant of "__add__" of "list" matches argument type "str"  [operator]
    argunparse/argument_unparser.py:114: note: Possible overload variants:
    argunparse/argument_unparser.py:114: note:     def __add__(self, list[str], /) -> list[str]
    argunparse/argument_unparser.py:114: note:     def [_S] __add__(self, list[_S], /) -> list[_S | str]
    argunparse/argument_unparser.py:114: note: Both left and right operands are unions
    argunparse/argument_unparser.py:120: error: Argument 1 to "join" of "str" has incompatible type "list[str | list[str]]"; expected "Iterable[str]"  [arg-type]
    argunparse/argument_unparser.py:129: error: Incompatible return value type (got "str | list[str]", expected "list[Any]")  [return-value]
    argunparse/argument_unparser.py:136: error: Incompatible return value type (got "str | list[str]", expected "str")  [return-value]
    Found 7 errors in 2 files (checked 8 source files)
    
  • Flake518: ran 🆗

  • Pydocstyle: ran 🆗

  • Coverage: 100% 🆗 (click for details)
    Name                              Stmts   Miss Branch BrPart  Cover   Missing
    -----------------------------------------------------------------------------
    argunparse/__init__.py                2      0      0      0   100%
    argunparse/_version.py                2      0      0      0   100%
    argunparse/argument_unparser.py      91      0     42      0   100%
    setup.py                              9      0      2      0   100%
    test/__init__.py                      6      0      0      0   100%
    test/examples.py                     12      0      0      0   100%
    test/test_argument_unparser.py      102      0     20      0   100%
    test/test_packaging.py                3      0      0      0   100%
    -----------------------------------------------------------------------------
    TOTAL                               227      0     64      0   100%
    

@codecov
Copy link

codecov bot commented Apr 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.0%. Comparing base (9da8f59) to head (42b2af1).
Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #6   +/-   ##
=======================================
  Coverage   100.0%   100.0%           
=======================================
  Files           8        8           
  Lines         228      227    -1     
  Branches       44       32   -12     
=======================================
- Hits          228      227    -1     

☔ 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.

@mbdevpl mbdevpl merged commit 9ea57d1 into main Apr 22, 2025
15 checks passed
@mbdevpl mbdevpl deleted the feature/packaging branch April 22, 2025 15:29
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