Skip to content
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

fix #1411: [FR] Add support for the 'ar-terme' template #1742

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

lasconic
Copy link
Collaborator

@lasconic lasconic commented Feb 2, 2023

Fixes #1411

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Feb 2, 2023

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 0.10%.

Quality metrics Before After Change
Complexity 211.52 ⛔ 209.45 ⛔ -2.07 👍
Method Length 1438.43 ⛔ 1481.50 ⛔ 43.07 👎
Working memory 34.08 ⛔ 33.98 ⛔ -0.10 👍
Quality 12.35% 12.25% -0.10% 👎
Other metrics Before After Change
Lines 9156 9418 262
Changed files Quality Before Quality After Quality Change
scripts/fr-racines-arabes.py 74.12% 🙂 71.44% 🙂 -2.68% 👎
wikidict/lang/fr/__init__.py 16.55% ⛔ 15.24% ⛔ -1.31% 👎
wikidict/lang/fr/arabiser.py 4.08% ⛔ 4.08% ⛔ 0.00%
wikidict/lang/fr/racines_arabes.py 64.01% 🙂 64.01% 🙂 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
wikidict/lang/fr/arabiser.py appliquer 343 ⛔ 3576 ⛔ 46 ⛔ 0.07% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
wikidict/lang/fr/arabiser.py arabiser 189 ⛔ 1069 ⛔ 39 ⛔ 0.21% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
wikidict/lang/fr/__init__.py last_template_handler 81 ⛔ 783 ⛔ 24 ⛔ 2.78% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
wikidict/lang/fr/arabiser.py nature 20 😞 156 😞 8 🙂 48.66% 😞 Refactor to reduce nesting. Try splitting into smaller methods

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!

@BoboTiG
Copy link
Owner

BoboTiG commented Feb 2, 2023

💪

@lasconic
Copy link
Collaborator Author

lasconic commented Feb 2, 2023

Before merge, I would like to handpick some of sourcery suggestions.

@lasconic
Copy link
Collaborator Author

lasconic commented Feb 2, 2023

But that will be for later, maybe next week.

@BoboTiG
Copy link
Owner

BoboTiG commented Feb 2, 2023

Your PR, your call :)

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.

[FR] Add support for the 'ar-terme' template
2 participants