janfreyberg / superintendent

Practical active learning in python
https://superintendent.readthedocs.io
189 stars 18 forks source link

Run newer version of black #64

Closed janfreyberg closed 3 years ago

janfreyberg commented 3 years ago

This is purely a formatting check to stop the linter complaining

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

Merging this PR leaves code quality unchanged.

Quality metrics Before After Change
Complexity 1.52 ⭐ 1.52 ⭐ 0.00
Method Length 34.20 ⭐ 34.20 ⭐ 0.00
Working memory 7.48 🙂 7.48 🙂 0.00
Quality 80.77% 80.77% 0.00%
Other metrics Before After Change
Lines 199 199 0
Changed files Quality Before Quality After Quality Change
src/superintendent/controls/buttongroup.py 80.91% ⭐ 80.91% ⭐ 0.00%
src/superintendent/controls/togglebuttongroup.py 80.63% ⭐ 80.63% ⭐ 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
src/superintendent/controls/buttongroup.py ButtonGroup._valid_value 5 ⭐ 75 🙂 10 😞 67.64% 🙂 Extract out complex expressions
src/superintendent/controls/togglebuttongroup.py ToggleButtonGroup._valid_value 5 ⭐ 75 🙂 10 😞 67.64% 🙂 Extract out complex expressions
src/superintendent/controls/buttongroup.py ButtonGroup.__init__ 3 ⭐ 47 ⭐ 10 😞 73.98% 🙂 Extract out complex expressions
src/superintendent/controls/togglebuttongroup.py ToggleButtonGroup.__init__ 3 ⭐ 47 ⭐ 10 😞 73.98% 🙂 Extract out complex expressions

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!

Let us know what you think of it by mentioning @sourcery-ai in a comment.