skshetry
cb96cf1487
fix name ( #10920 )
2025-12-01 15:52:37 +05:45
skshetry
82efd3e780
fix some, suppress some issues from ty check ( #10841 )
2025-08-14 21:05:49 +05:45
pre-commit-ci[bot] and Saugat Pachhai
3375a7c39f
[pre-commit.ci] pre-commit autoupdate ( #10372 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.3 → v0.3.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.3...v0.3.4 )
* fixes
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2024-03-26 06:37:53 +00:00
Ruslan Kuprieiev
4392af6d95
cli: debug: finalize profiler reports on errors
...
Even if a command failed, it might still be useful to look at the profiler report.
2023-12-13 20:34:30 +02:00
dependabot[bot] and Ruslan Kuprieiev
8d23a5e65a
build(deps-dev): bump mypy from 1.6.1 to 1.7.0 ( #10088 )
...
* build(deps-dev): bump mypy from 1.6.1 to 1.7.0
Bumps [mypy](https://github.com/python/mypy ) from 1.6.1 to 1.7.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.6.1...v1.7.0 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
* fix misc mypy errors
---------
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ruslan Kuprieiev <[email protected] >
2023-11-13 10:59:32 +02:00
skshetry
d678773b53
remove more pylint suppression comments ( #10084 )
2023-11-10 15:19:52 +05:45
skshetry
06565e18b4
remove pylint suppression comments ( #10080 )
2023-11-09 20:31:50 +05:45
Jon Crall and skshetry
541def388b
environment variable to show debug options ( #9693 )
...
* environment variable to show debug options
* lint
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add message to debug opts
* spelling
* Add argument group and move cprofile-dump
line length
linelen
lint
* use DVC_DEBUG instead of DVC_SHOW_DEBUG_OPTIONS
* use -v instead of environ
* Update dvc/_debug.py
Co-authored-by: skshetry <[email protected] >
* fix
---------
Co-authored-by: skshetry <[email protected] >
2023-07-04 01:35:33 +03:00
skshetry
a86470ccbc
update black and change line-length to 88 ( #8953 )
2023-02-04 05:28:07 +02:00
Dave Berenbaum and skshetry
18f039d7c7
add viztracer async option ( #8856 )
...
* add viztracer async option
* Update dvc/_debug.py
Co-authored-by: skshetry <[email protected] >
2023-01-20 22:29:11 +05:45
skshetry
6d80b72434
lint: run lint checks on all platforms ( #8832 )
2023-01-17 10:51:57 +05:45
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
175c578579
ruff: ban relative parent/grandparent imports ( #8794 )
2023-01-11 16:48:46 +05:45
skshetry
5441964fdb
add ruff ( #8793 )
...
* add ruff linter
* enable few more checks
2023-01-11 15:20:38 +05:45
Ruslan Kuprieiev
61ce52f259
yappi: add --yappi-separate-threads flag
2022-10-29 21:23:37 +03:00
Saugat Pachhai (सौगात)
1d5d15644d
debug: add --show-stack/--ss flag
2022-10-19 17:13:22 +03:00
skshetry
bbaf57c5b2
_debug: minor refactor on debugtools ( #8454 )
...
* _debug: minor refactor on debugtools
* delete test
2022-10-19 18:01:20 +05:45
David de la Iglesia Castro
d882e21b9b
debug: Remove viztracer-depth default
2022-01-25 20:28:41 +05:45
David de la Iglesia Castro
3276c76a02
tests: Add test_debug
2022-01-25 20:28:41 +05:45
Saugat Pachhai
758dc43575
Update dvc/_debug.py
2022-01-25 20:28:41 +05:45
David de la Iglesia Castro
f1dc9e50a7
debug: Add support for viztracer profiler.
2022-01-25 20:28:41 +05:45
Saugat Pachhai
b1f1b01ffc
debug: add yappi, callgrind output support ( #6664 )
...
* debug: add yappi, callgrind output support
* support custom path and callables
2021-09-21 20:33:08 +03:00
Saugat Pachhai
b9000ed926
pre-commit: update black to 21.5b1 ( #6032 )
...
* pre-commit: update black to 21.5b1
also updated others, but black is more noticeable
* remove magic trailing comma
2021-05-18 15:51:15 +00:00
Saugat Pachhai
9331ad23e4
Misc. imports lazy on utils,stage.cache and dvc.* ( #5228 )
2021-01-07 15:03:34 +05:45
Saugat Pachhai
c4970a016f
debug functions: have a good default value ( #5202 )
...
I had to keep providing default value before when profiling
simple functions as an API. I added a default now, and
also made `debugtools` customizable so that you could
edit the code to, for example, have `pdb` enabled by default.
2021-01-04 20:16:42 +05:45
Saugat Pachhai
8010005364
Reraise exception after pdb.post_mortem() ( #5197 )
...
Otherwise, `continue` etc. would fail
2021-01-04 15:34:04 +05:45
Saugat Pachhai
261ddc947b
Add pyinstrument: a statistical profiler ( #5196 )
...
* Add pyinstrument: a statistical profiler
It is easier than cprofile, in that it can show stacktrace
of where things are slow.
Also refactored/moved debugging related utils to a separate
module
* use ipdb first, then fallback to pdb
* use ipdb first, then fallback to pdb
2021-01-04 15:23:40 +05:45