Closed lk-geimfari closed 5 years ago
@lk-geimfari I agree. I think that all modules that start with util
are just not placed well in some other entities. Related: https://wemake-python-styleguide.readthedocs.io/en/latest/pages/violations/naming.html#wemake_python_styleguide.violations.naming.WrongModuleNameViolation
So, maybe we can refactor the whole module?
@sobolevn Yeah, I think about it too. This release will contain breaking things anyway (because there was too much really old and bad solution inherited from the very early version of the church
). Any possible breaking features must be implemented here, in v3.0.0.
Can you, please, create an issue?
I also suggest renaming other internal modules with bad names, such as helpers
, __version__
Done.
Feature request
Thesis
I suggest moving
utils.pull
toBaseDataProvider
because it's only needed for locale-dependent providers, which are all subclasses ofBaseDataProvider
.Reasoning
We are forced to always manually import
pull
to the modules where are we create new providers and repeat the same code, although the pull is needed only for locale-dependent providers which are all inherited fromBaseDataProvider
. It will be much logically correct to keep pull in providerBaseDataProvider
I think.The idea is simple, instead of this:
Use this:
After this we'll able to use pull withot any extra importing.
That's just discussion, I have not started working on this yet.