Skip to content

Conversation

Lee-W
Copy link
Member

@Lee-W Lee-W commented Dec 18, 2019

  • Refactor config
    • Create a BaseConfig class for the default configuration
    • Use TomlConfig and IniConfig to separate the logic of parsing different type of config file
  • Use new config structure to fix the previously fixed Issue name cannot be overwritten in config #97
  • Rename the config inside a config object as settings
  • Use config class as an argument for cz and commands instead of dict config

@woile
Copy link
Member

woile commented Dec 18, 2019

Wow, great work Lee, I will review it this week

@Lee-W
Copy link
Member Author

Lee-W commented Dec 27, 2019

Maybe we can add mypy check in the future? But I think it might be better to do it after these PRs.

@woile woile merged commit 48ce191 into commitizen-tools:master Dec 27, 2019
@Lee-W Lee-W deleted the refactor-config branch December 30, 2019 01:06
Lee-W added a commit to Lee-W/commitizen that referenced this pull request Dec 31, 2019
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.

2 participants