-
Notifications
You must be signed in to change notification settings - Fork 0
Configure global context to manage runtime configuration #28
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
base: master
Are you sure you want to change the base?
Configure global context to manage runtime configuration #28
Conversation
* refact: implement logger functions that can be call directly
* feat: install platformdirs library to be able to fetch system directory as application directory or user directory that depends of the OS (linux, windows, ...)
* feat: implement ctx module to manage global context
Pipfile
Outdated
| fixtup = {path = ".", editable=true} | ||
| six = "*" | ||
|
|
||
| platformdirs = "*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move platformdirs into setup.cfg dependency
src/fixtup/entity/fixtup.py
Outdated
| enable_hooks: bool = True | ||
| enable_plugins: bool = True | ||
|
|
||
| # A chaque fois que fixtup.up est invoqué, fixtup redémarre comme si c'était une nouvelle exécution des |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translate this comment into english and delete line breaks
9c38273 to
39ba127
Compare
* feat: implement ctx module to manage global context * feat: remove factory module (not used anymore) * feat: use global context in tests
39ba127 to
b9b0775
Compare
* improve code after review
src/fixtup/entity/fixtup.py
Outdated
| class Fixtup: | ||
|
|
||
| # Global settings | ||
| appname: str = 'fixtup' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should use attr syntax for the attributes (here it's dataclass syntax)
appname = attr.ib(default='fixtup')
* feat: use context instead of read_settings
5a2ec80 to
220b95b
Compare
* refact: rename functions
* feat: use simple implementation * feat: attach fixture engine to fixtup context
No description provided.