skshetry
33b6c1d876
params/metrics: cache remote files ( #9932 )
2023-09-11 19:13:47 +05:45
skshetry
2a2c02c184
remove typing.cast ( #9082 )
2023-02-26 13:15:54 +05:45
skshetry
a86470ccbc
update black and change line-length to 88 ( #8953 )
2023-02-04 05:28:07 +02:00
Peter Rowlands
c2e4f51479
serialize: fix mypy error
2023-01-16 15:58:21 +09:00
Ruslan Kuprieiev
a92ace0054
deps: bump dvc-data to 0.31.3
2023-01-16 01:16:35 +02:00
skshetry
309ae4d995
mypy: enable check-untyped-defs ( #8815 )
2023-01-15 21:40:40 +05:45
skshetry
7a65ac06b2
mypy: don't ignore all imports, also disallow implicit optional ( #8814 )
...
* mypy: don't ignore all imports
* mypy: disallow implicit_optional
2023-01-15 16:25:03 +05:45
skshetry
da27174e02
dvcfile: rename PipelineFile to ProjectFile, get rid of Dvcfile class, cleanups, etc. ( #8812 )
...
dvcfile: rename PipelineFile to ProjectFile, get rid of Dvcfile class, cleanups etc
2023-01-15 12:45:10 +05:45
skshetry
5441964fdb
add ruff ( #8793 )
...
* add ruff linter
* enable few more checks
2023-01-11 15:20:38 +05:45
skshetry
6df70d388e
update pre-commit; add some more hooks ( #8492 )
...
* update pre-commit; add some more hooks
* Apply suggestions from code review
2022-10-31 21:04:11 +05:45
Saugat Pachhai (सौगात)
570e3a5359
dvc.fs: move fs to dvc.objects.fs
...
Some of the APIs/FileSystems are reimported inside dvc.fs module.
2022-05-16 13:15:19 +03:00
Ruslan Kuprieiev
c9dd137426
fs: BaseFileSystem -> FileSystem
...
Following fsspec conventions and new object conventions.
2021-11-18 19:58:23 +02:00
Saugat Pachhai
fbcc3f389c
TmpDir: add serialize utilities ( #6620 )
2021-09-15 16:13:06 +05:45
Laurens Duijvesteijn
9a7b6d2a1a
serialize: Wrap UnicodeDecodeErrors ( #6193 )
...
Also expose `encoding` and `path` as attributes, so programmatic
consumers can access it easily.
2021-06-19 11:35:50 +05:45
Ruslan Kuprieiev
b0fd40f12c
dvc: rename tree -> fs ( #5461 )
2021-02-13 15:40:44 +02:00
Saugat Pachhai
a9d620beda
utils.serialize: lazy imports ( #5224 )
2021-01-07 11:44:37 +05:45
Saugat Pachhai
d138bdd72a
Add mypy config, fix type errors in a few remaining places ( #4951 )
...
* Add mypy config, fix type errors in a few random places
* Add typing_extensions
* Use setup.cfg for mypy's config
2020-11-24 14:19:55 +05:45
Saugat Pachhai
1d196b4df6
Modify yaml/toml using contextmanager, removing boilerplate ( #4426 )
2020-08-21 04:47:58 +03:00
Saugat Pachhai
de0fe94cd0
Make serializing utils use tree, misc changes ( #4425 )
...
* Also fixes plots not getting dumped on flow style
* Make serialization utils aware of trees
* Directly load yamls/tomls using utils, rather than using parser
2020-08-20 20:38:17 +03:00
Saugat Pachhai
14745039a4
Move to yaml1.2 ( #4415 )
...
* use yaml 1.2 everywhere
This commit:
* gets rid of pyyaml
* uses ruamel everywhere
* tries to unite toml and yaml
However, this will require a few more changes that will come soonish.
Eg: Current `parse_yaml` and `parse_toml` behavior could be error-prone,
so, it's better to introduce `tree` inside these serialization methods
(which I will try to tackle next).
Another is, yaml load can be slow for json. We could speed it up just by
using `json.load(s)` here (also in upcoming patch).
* Fix tests
2020-08-19 17:56:38 +03:00