Ruslan Kuprieiev
4069e34130
dvc: use black instead of flake8
...
Fixes #1546
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-01-30 03:48:36 +02:00
Mr. Outis
0d46921ec7
py2: add unicode literals
...
Fix #1512
2019-01-27 20:40:21 -06:00
Ruslan Kuprieiev
6fec8b16cd
RFC: conform to pylint
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-01-16 14:12:19 +02:00
Ruslan Kuprieiev
feb6f48a5a
logger: handle chained exceptions
...
Fixes #1456
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-12-26 03:38:34 +02:00
Mr. Outis
4c420d5f4d
logger [rfc]: Use a module instead of a class
...
- Remove deprecation warnings
- Format error output and remove duplicated info
Close #1086
2018-12-23 21:06:39 -06:00
Ruslan Kuprieiev
e02a33f934
logger: shortcut logger in quiet and normal modes
...
In scenarios with millions of files, late shorcutting of
debug msgs results in massive overhead. In order to avoid
that, just shortcut logger messages ASAP if verbose mode
is not enabled.
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-12-11 12:07:28 +02:00
Ruslan Kuprieiev
a67988a80e
test: enable flake8 checks for tests
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-12-06 06:40:55 +02:00
Mr. Outis
b3b2c97f4b
logger: Prevent adding multiple handlers
...
Fix #1365
2018-12-04 22:33:06 -06:00
Ruslan Kuprieiev
fe32002a7f
dvc: handle KeyboardInterrupt
...
Fixes #1389
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-12-02 07:58:16 +02:00
Mr. Outis
44e67d4cdc
progress: Respect the --quiet option ( #1377 )
...
* progress: Respect the --quiet option
Fix #1308
* Use a dynamic import to prevent circular dependency
* test: add test for quiet mode
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-11-29 08:10:43 +02:00
Paweł Redzyński
4aab443675
Add separate stream handler for error logging ( #1292 )
...
* Add separate stream handler for error logging
* test stdout and stderr
* review refactor, newline after test
* mock instead of unittest.mock
* use filter instead of lambda
* add result checks
* remove Logger pseudo-integration test, add direct test
* tests, refactor, StringIO intercepts stdout and stderr messages
* Check exact error message
Co-Authored-By: pared <[email protected] >
* Check exact non-error message
Co-Authored-By: pared <[email protected] >
2018-11-04 12:41:43 +02:00
Ruslan Kuprieiev
ebd8468b1c
tests: test CmdBase._set_loglevel
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-07-19 07:05:28 +03:00
Ruslan Kuprieiev
9fdf949723
dvc: use DataCloud.supported() method for url testing
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-04-08 00:28:31 +03:00
Ruslan Kuprieiev
fa43309222
config: rename 'Global' section to 'Core'
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-03-08 09:04:28 +02:00
Ruslan Kuprieiev
bce3210a98
logger: rework and add test
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-01-07 16:58:17 +02:00