iterative / shtab

↔️ Automagic shell tab completion for Python CLI applications
https://docs.iterative.ai/shtab
Other
363 stars 35 forks source link

Fix typos #96

Closed luzpaz closed 1 year ago

luzpaz commented 2 years ago

Found via codespell -q 3 -L fo

sourcery-ai[bot] commented 2 years ago

Sourcery Code Quality Report

Merging this PR leaves code quality unchanged.

Quality metrics Before After Change
Complexity 27.91 😞 27.91 😞 0.00
Method Length 101.07 🙂 101.07 🙂 0.00
Working memory 3.71 ⭐ 3.71 ⭐ 0.00
Quality 46.86% 😞 46.86% 😞 0.00%
Other metrics Before After Change
Lines 1044 1044 0
Changed files Quality Before Quality After Quality Change
shtab/init.py 25.89% 😞 25.89% 😞 0.00%
shtab/main.py 70.21% 🙂 70.21% 🙂 0.00%
tests/test_shtab.py 76.67% ⭐ 76.67% ⭐ 0.00%

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
shtab/init.py get_bash_commands 78 ⛔ 589 ⛔ 1.22% ⛔ Refactor to reduce nesting. Try splitting into smaller methods
shtab/init.py complete_zsh 62 ⛔ 900 ⛔ 2.38% ⛔ Refactor to reduce nesting. Try splitting into smaller methods
shtab/init.py complete_tcsh 53 ⛔ 470 ⛔ 4.99% ⛔ Refactor to reduce nesting. Try splitting into smaller methods
tests/test_shtab.py test_add_argument_to_positional 1 ⭐ 171 😞 9 🙂 61.90% 🙂 Try splitting into smaller methods
shtab/main.py main 8 ⭐ 148 😞 7 🙂 61.90% 🙂 Try splitting into smaller methods

Legend and Explanation

The emojis denote the absolute quality of the code:

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!

casperdcl commented 1 year ago

Thanks! sorry for the delay!