Files
dvc/tests/unit
Alexander Schepanovski 6ccae711fe dvc: refactor config (#3298)
* dvc: refactor config

Advantages:
- read like a dict
- modify as a dict for testing or manipulation purposes
- wrap modifications into context manager to save them:

    with config.edit("local") as conf:
        conf["core"]["remote"] = "new-default"

Design decisions:
- dropped string constants
- remote sections are parsed into a simple subdict upon load
- remote config schema is now defined by url scheme
- relative paths are handled transparently upon load/save
- user config and remote manipulations are moved to commands
- same dev manipulations are done by simply modifying a config dict

* test: do not set cache.type for remotes that doesn't support it

* dvc: fix windows absolute paths validation in config

* test: fix windows separate drive test

* dvc: stylistic fixes in config
2020-02-13 19:35:37 +02:00
..
2020-02-12 22:10:48 +02:00
2020-02-13 19:35:37 +02:00
2019-11-05 02:34:40 +02:00
2018-12-28 19:58:25 +02:00
2020-02-13 19:35:37 +02:00
2020-02-13 19:35:37 +02:00
2019-12-06 23:36:21 +01:00
2019-12-05 15:25:21 +02:00
💅 black
2019-12-17 12:21:50 -06:00