Skip to content

Conversation

@sourcery-ai
Copy link

@sourcery-ai sourcery-ai bot commented Dec 14, 2022

Branch master refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the master branch, then run:

git fetch origin sourcery/master
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai bot requested a review from SudarshanVK December 14, 2022 04:21
sys.exit(2)

print(Fore.GREEN + f" ====>Capture Window Set to: {w}")
print(f"{Fore.GREEN} ====>Capture Window Set to: {w}")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function capture refactored with the following changes:

@sourcery-ai
Copy link
Author

sourcery-ai bot commented Dec 14, 2022

Sourcery Code Quality Report

Merging this PR leaves code quality unchanged.

Quality metrics Before After Change
Complexity 10.04 🙂 10.04 🙂 0.00
Method Length 109.88 🙂 109.88 🙂 0.00
Working memory 11.89 😞 11.89 😞 0.00
Quality 48.43% 😞 48.43% 😞 0.00%
Other metrics Before After Change
Lines 244 244 0
Changed files Quality Before Quality After Quality Change
run.py 48.43% 😞 48.43% 😞 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
run.py execute_command_write_to_file 20 😞 262 ⛔ 15 😞 28.92% 😞 Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
run.py compute_diff 11 🙂 244 ⛔ 14 😞 38.36% 😞 Try splitting into smaller methods. Extract out complex expressions
run.py diff 3 ⭐ 161 😞 10 😞 58.80% 🙂 Try splitting into smaller methods. Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

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!

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.

1 participant