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

Improve code quality from extractor.py and test_featurizer.py #8666

Closed

Conversation

iurisevero
Copy link
Contributor

Proposed changes:

  • Remove code duplication from test_featurizer
  • Reduce cognitive complexity from extractor.py
    • Broke big functions into minor ones
    • Reduce conditions at _create_new_entity function

More details about the refactoring process can be seen in this wiki page. It's in Brazilian Portuguese, but it might help.

Status (please check what you already did):

  • added some tests for the functionality
  • updated the documentation
  • updated the changelog (please check changelog for instructions)
  • reformat files using black (please check Readme for instructions)

@sara-tagger sara-tagger requested a review from alopez May 12, 2021 06:00
@sara-tagger
Copy link
Collaborator

Thanks for submitting a pull request 🚀 @alopez will take a look at it as soon as possible ✨

@iurisevero iurisevero closed this Jul 14, 2021
@ErickGiffoni ErickGiffoni deleted the clean-code-and-solid-iuri-severo branch August 5, 2021 19:42
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.

3 participants