Alexander Schepanovski
0203fd4017
perf: import dvc.repo dynamically
2019-09-27 15:08:42 +07:00
Ruslan Kuprieiev
381601f4ee
dvc: cache graph/stages/pipelines ( #2529 )
...
* dvc: cache graph/stages/pipelines
Signed-off-by: Ruslan Kuprieiev <[email protected] >
* repo: check_dag: don't reset the cache
https://github.com/iterative/dvc/pull/2529#discussion_r327711928
Signed-off-by: Ruslan Kuprieiev <[email protected] >
* repo: rename check_dag(stages) -> check_modified_graph(new_stages)
https://github.com/iterative/dvc/pull/2529#discussion_r327708439
Signed-off-by: Ruslan Kuprieiev <[email protected] >
* repo: refactor "active" logic and remove it from Repo class
* repo: use tree.setter to automate cache reset
As noted by @Suor's , this is much less prone to errors.
* repo: move graph-related staticmethods into graph.py
As per @Suor's request.
* dvc: remove unused from_directory
https://github.com/iterative/dvc/pull/2529#discussion_r328079258
* repo: use _tree instead of __tree
https://github.com/iterative/dvc/pull/2529#discussion_r328071115
* repo: add a note about cache invalidation on repo.lock release
https://github.com/iterative/dvc/pull/2529#discussion_r328071635
* repo: rename reset() -> _reset()
https://github.com/iterative/dvc/pull/2529#discussion_r328079899
* pipeline: use graph helpers
https://github.com/iterative/dvc/pull/2529#discussion_r327502293
* repo: use list comprehension for collect()
https://github.com/iterative/dvc/pull/2529#discussion_r328076651
* repo: graph: only use first cycle
https://github.com/iterative/dvc/pull/2529#discussion_r328081346
* dvc: don't use G.nodes()
https://github.com/iterative/dvc/pull/2529#discussion_r328089671
https://github.com/iterative/dvc/pull/2529#discussion_r328089878
2019-09-26 07:42:29 +03:00
Ivan Shcheklein
6ae13b5795
cli: update man links to the new scheme
2019-08-09 17:54:26 -07:00
Jorge Orpinel
c7ef6592fe
output: remove a couple more "(s)" left
...
Per https://github.com/iterative/dvc/pull/2281#issuecomment-513053199
2019-07-20 13:44:36 -06:00
Jorge Orpinel
a2f3d7fcfa
command: add missing space in optional targets ard usage output
2019-06-27 13:39:05 -05:00
Jorge Orpinel
936f941bf0
help: update usage for commands that use the targets argument
2019-06-26 23:25:58 -05:00
Ivan Shcheklein
c0a06d2ceb
pipeline show command: ignore stage if command is not defined
2019-06-23 13:58:42 -07:00
prd
0615ff8730
pathinfo: extract relative path method to standalone method
2019-06-18 12:08:19 +02:00
Jorge Orpinel
3dffe8e5c0
dvc: i/DVC file[s]?/ -> /DVC-file($1)/
...
Standardizes way to refer to DVC-file(s)
(Related to #2102 )
2019-06-07 03:33:20 -05:00
TomHortons
d9a79ce345
pipeline: show: dot: use dvc.utils
2019-05-22 12:11:55 +09:00
TomHortons
e3de8aac65
pipeline: show: dot: print dot
2019-05-22 11:11:23 +09:00
Yao Adzaku
6c730dd5cb
pipeline: print locked DVC stages ( #1882 )
...
* pipeline: add option to display locked DVC stages.
The '--locked' option xplicitly displays only locked DVC stages.
Fixes #1864
* pipeline: support short option '-l' for displaying locked stages
* pipeline: minor cosmetic tweak
* pipeline: reformat code with black
* pipeline: test printing of locked stages
* pipeline: use caplog to ensure command outputs everything as expected
* pipeline: cleanup test
* pipeline: more strict comparison of test output
2019-04-16 16:46:50 +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
Ivan Shcheklein
4a9188c0b5
Move man doc links to descriptions, fix some help copies ( #1805 )
...
* move man doc links to descriptions, fix some help copies
* minor init force message fix
* deal with ugly inheritance in lock base
* remove unnecessary super calls
* add return back to python lock/unlock run functions
2019-03-29 03:56:41 +02:00
Dmitrii Pukhov
263dee8650
Replace ValueError with DvcException
2019-03-26 22:39:41 +09:00
Dmitrii Pukhov
fba43277e6
cli: add pipeline show --tree
...
Add option to unfold dependencies into a tree.
Fixes #1038
2019-03-26 01:29:49 +09:00
Lee Yi Jie Joel
2ba657c77a
Add links to documentation for all commands ( #1767 )
2019-03-22 20:32:06 +02:00
Ruslan Kuprieiev
ba8d83e9b1
dvc: refactor dvc project class
...
1) split Project's methods into separate files;
2) rename Project into Repo(similar to gitpython's Repo)
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-02-13 03:31:23 +02:00
Ruslan Kuprieiev
4896f08ddf
dvc: comply with both flake8 and black
...
flake8 provides some additional features like unused vars check, etc, so
it makes total sense to use it as well.
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-02-04 00:10:36 +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
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
f04ae2f74f
dvc: optimize imports
...
Fixes #903
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-12-02 04:54:41 +02:00
Ruslan Kuprieiev
abfb48e896
dvc: introduce pipeline list command
...
Fixes #1301
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-11-07 18:39:29 +02:00
pared
89e03c8606
pipeline show add --dot option ( #1141 )
...
* pipeline show add --dot option
* refactor common code, pydot in requirements
* code formatting
* code formatting
2018-09-24 02:50:41 +03:00
Ruslan Kuprieiev
55b3c47bbf
pipeline: process edges and nodes separately
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-08-28 11:36:06 +03:00
Ruslan Kuprieiev
825da210cf
dvc: use __str__ method for deps/outs
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-08-28 11:36:06 +03:00
Ruslan Kuprieiev
6f0e293c9a
test: cover pipeline show
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-08-27 14:40:21 +03:00
Ruslan Kuprieiev
bdca1ce8cc
pipeline: fix corner case
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-08-27 13:44:16 +03:00
Ruslan Kuprieiev
26e007f407
test: cover pipeline show --ascii
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-08-23 07:57:23 +03:00
Ruslan Kuprieiev
c378e4b3d2
dvc: pipeline show: create ASCII visualizations for DAG
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-08-19 21:01:12 +03:00
Ruslan Kuprieiev
86322fbe35
repro: print help when Dvcfile doesn't exist
...
Fixes #1003
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-08-14 02:08:12 +03:00
Ruslan Kuprieiev
2cab8e03be
command: remove unused code
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-07-19 07:00:39 +03:00
Ruslan Kuprieiev
3410f8048a
dvc: optimize imports to speedup startup time
...
Speeds up `time dvc` from 1.2 seconds to <0.2 seconds.
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-07-18 11:20:05 +03:00
Ruslan Kuprieiev
1418ab81c9
pipeline: add -o|--outs option for show
...
Outputs output files instead of paths to DVC files.
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-07-16 16:57:23 +03:00
Ruslan Kuprieiev
6d6653840e
dvc: use active stages when collecting cache
...
Fixes #887
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-07-16 13:43:46 +03:00
Ruslan Kuprieiev
71d9fb44fc
dvc: add dvc pipeline show
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2018-07-14 10:49:32 +03:00