Saugat Pachhai
b8aa8ad951
pyupgrade: 3.6+ ( #3805 )
...
* pyupgrade: 3.6+
* tests: pyupgrade 3.6+
2020-05-15 16:48:02 +03:00
Casper da Costa-Luis
2bb7257a06
lint: isort pre-commit & misc improvements ( #3749 )
...
* test: clean flake8 config root clutter
* test: pre-commit: add isort
Compatible with black (see https://github.com/timothycrosley/isort/issues/694 )
* lint: reorder imports
* lint: more complex imports
* lint: fix deepsource
* config: isort: add first party dvc
* tests: restyled: add isort
* temp commit to revert before merge
* Revert "temp commit to revert before merge"
This reverts commit 11db0fd8e95fe891597cbb9bf804480909b19e24.
2020-05-06 23:56:07 +03:00
Mr. Outis
b844aea42c
py3: remove cast_bytes method
2019-12-31 20:14:25 -06:00
Mr. Outis
94a0914bba
py3: get rid of future imports
2019-12-30 19:35:48 -06:00
Saugat Pachhai
461a79e1e8
Fix typos
2019-11-26 20:07:20 +05:45
Ruslan Kuprieiev
95fe1578bb
dvc: automatically reorder imports
2019-11-05 02:34:40 +02:00
Ruslan Kuprieiev
31b40816b5
daemon: use sys.argv[0] instead of -m dvc
...
This way dvc will actually launch the same script that it is running
from and not installed dvc module, that might not match.
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-09-22 05:18:51 +03:00
Ruslan Kuprieiev
fafad73602
daemon: don't forget to convert to bytes on py2
2019-04-08 03:07:33 +03:00
Ruslan Kuprieiev
7c540da5c4
daemon: don't spawn recursively
...
Fixes #1803
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-04-07 20:12:23 +03:00
Mr. Outis
85cd344152
logger: Use a more _pythonic_ logging
...
- Uses a formatter for coloring output
- Move the `progress_aware` decorator logic to the logger itself
- Refactor modules so each one uses their own instance of a logger
Close #1753
2019-04-06 18:19:32 -06:00
Ruslan Kuprieiev
24072c8083
daemon: don't dump env into debug log
2019-03-20 16:07:33 +02:00
Ruslan Kuprieiev
005239ade7
py2: cast env keys to bytes
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-02-09 06:59:21 +02:00
Ruslan Kuprieiev
40c84fe4ed
py2: fix environ issue
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-02-09 03:59:45 +02:00
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
e3304e14fa
daemon: set PYTHONPATH
...
Fixes #1525
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-01-26 01:54:45 +02:00
pared
b718badeb5
remove unnecessary staticmethod annotation
2019-01-19 13:16:21 +01:00
Ruslan Kuprieiev
6fec8b16cd
RFC: conform to pylint
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-01-16 14:12:19 +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
e1f736eaad
daemon: fix daemon when running in binary mode
...
When running from binary, we need to fixup environment variables
before launching new processes. We also need to detach from the parent
tty, because otherwise it causes problems for PyInstaller.
Plus, when binary is built as --onefile it still creates pop-up terminal
on windows, so we need to switch to --onedir.
Fixes #1446
Fixes #1444
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-12-18 18:13:55 +02: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
22c6ad5ba3
analytics: send user events
...
Fixes #693
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-12-01 06:02:28 +02:00
Ruslan Kuprieiev
89b601b319
updater: don't throw errors when running in a daemon
...
Fixes #1344
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-11-18 17:00:48 +02:00
Ruslan Kuprieiev
63544b7e01
updater: spawn a background daemon
...
Fix #1304
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-11-16 19:39:43 +02:00