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

Refactor codebase #45

Merged
merged 29 commits into from
Apr 10, 2020
Merged

Refactor codebase #45

merged 29 commits into from
Apr 10, 2020

Conversation

vilhelmprytz
Copy link
Member

Split codebase into Wilfred CLI and Wilfred API more clearly. Will make it easier to develop an extension system. This is a refactor, no changes to the end-user are planned.

Fixes #42

@vilhelmprytz vilhelmprytz added the enhancement New feature or request label Mar 20, 2020
@vilhelmprytz vilhelmprytz self-assigned this Mar 20, 2020
@lgtm-com
Copy link

lgtm-com bot commented Mar 20, 2020

This pull request introduces 2 alerts when merging 45b4caf into 6e035ac - view on LGTM.com

new alerts:

  • 2 for Unreachable code

@lgtm-com
Copy link

lgtm-com bot commented Apr 1, 2020

This pull request introduces 1 alert when merging 14b3dac into c467222 - view on LGTM.com

new alerts:

  • 1 for Module is imported with 'import' and 'import from'

@lgtm-com
Copy link

lgtm-com bot commented Apr 3, 2020

This pull request introduces 1 alert when merging 80dd6cd into c467222 - view on LGTM.com

new alerts:

  • 1 for Module is imported with 'import' and 'import from'

@lgtm-com
Copy link

lgtm-com bot commented Apr 4, 2020

This pull request introduces 1 alert when merging ec70337 into 7d32f73 - view on LGTM.com

new alerts:

  • 1 for Module is imported with 'import' and 'import from'

@lgtm-com
Copy link

lgtm-com bot commented Apr 6, 2020

This pull request introduces 1 alert when merging c802110 into d3b2eab - view on LGTM.com

new alerts:

  • 1 for Module is imported with 'import' and 'import from'

move wilfred/parser to wilfred/api/parser (update imports)
move wilfred/server_config to wilfred/api/server_config
improve CLI exception handling (add spinner.fail() before ui_exception is called on Halo spinners)
server_config is in wilfred.api.server_config and not wilfred.server_config
server_config is now refactored
raises Wilfred exceptions where it makes sense to and custom UnsupportedFiletype exception
catch exceptions as ui_exception() in CLI
tests used to create a pseudo configuration dict, to avoid issues this has now been replaced by the actual Config method (from wilfred.api.config_parser)
@vilhelmprytz vilhelmprytz marked this pull request as ready for review April 10, 2020 17:32
@MikaelPrytz
Copy link

Great code

@vilhelmprytz vilhelmprytz removed the request for review from alvarlagerlof April 10, 2020 18:47
@vilhelmprytz vilhelmprytz merged commit 5433fee into master Apr 10, 2020
@vilhelmprytz vilhelmprytz deleted the improve-codebase branch April 10, 2020 18:49
vilhelmprytz added a commit that referenced this pull request Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve codebase
2 participants