skshetry
cb96cf1487
fix name ( #10920 )
2025-12-01 15:52:37 +05:45
skshetry
9a1bcd7f1d
nit: fit statement/expr in the same line instead of hanging ( #10267 )
...
The code are wrapped due to us using line-length=79 before, but now some
of the code can easily fit in 88 chars.
The formatter did not change this automatically when we changed line-length,
because of magic trailing commas that gets added when they turn into multiple lines.
Black/ruff wrapping them in parens and splitting them into multiple lines
was making it difficult to read.
2024-01-30 18:23:04 +05:45
skshetry
a86470ccbc
update black and change line-length to 88 ( #8953 )
2023-02-04 05:28:07 +02:00
b652670cbf
Dependabot/pip/pylint 2.11.1 ( #6843 )
...
* build(deps): Bump pylint from 2.9.6 to 2.11.1
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.9.6 to 2.11.1.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.9.6...v2.11.1 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
* fix pylint problems
* Updation after rebase.
* system: use binary mode
* Set remote execution script encoding type locale
* Update dvc/machine/__init__.py
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ruslan Kuprieiev <[email protected] >
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
2021-10-20 14:34:10 +03:00
Gao
6de3e734ed
Revert "build(deps): Bump pylint from 2.9.6 to 2.11.1 ( #6636 )" ( #6842 )
...
This reverts commit 464620806c .
2021-10-20 12:41:00 +03:00
464620806c
build(deps): Bump pylint from 2.9.6 to 2.11.1 ( #6636 )
...
* build(deps): Bump pylint from 2.9.6 to 2.11.1
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.9.6 to 2.11.1.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.9.6...v2.11.1 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
* fix pylint problems
* system: use binary mode
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: karajan1001 <[email protected] >
Co-authored-by: Ruslan Kuprieiev <[email protected] >
2021-10-20 10:32:44 +08:00
Nikita Kodenko
696c704632
tests: replace several unittest.mock usages with mocker ( #6544 )
...
* tests: several unittest.mock usages replaced with mocker
* tests: fixes in tests/unit/repo/test_reproduce.py
* tests: rolled back WiP tests
2021-09-17 18:22:34 +03:00
Saugat Pachhai
451bd3ebc8
Change ui messaging for the updater ( #6437 )
2021-08-16 18:31:44 +03:00
Christian Clauss
d8b67f6f78
Upgrade to modern Python syntax ( #6296 )
2021-07-19 01:30:37 +03:00
Saugat Pachhai
67980de44d
tests: mock global config dir for Updater ( #5386 )
2021-02-02 17:08:09 +05:45
Puneetha Pai
172032d3b3
Config to enable/disable updater ( #4334 )
...
* Updater: Add method to check dvc core config check_update
* Updater: check config before calling update._check
Fixes #1894
2020-08-10 11:59:25 +03:00
Saugat Pachhai
047352027f
pylint: enable attribute-outside-init check ( #4119 )
...
* pylint: enable attribute-outside-init check
* fix tests
* Fix mock for time
This was an interesting one. I was mocking `time` on function definition
and then, using those later on test run. When all the tests were run, there
would be some delay that'd make tests fail. Hmmm ...
2020-06-26 17:22:38 +03:00
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
e519464aca
💅 black
2019-12-17 12:21:50 -06:00
Mr. Outis
8a14700c12
tests/updater: fix problems with .check
2019-12-17 12:18:43 -06:00
Mr. Outis
4b833f58e5
tests/updater: use skipif for .check
2019-12-15 13:09:23 -06:00
Mr. Outis
d0f3559d96
tests: updater, use dir helpers
2019-12-12 18:59:52 -06:00
Ruslan Kuprieiev
95fe1578bb
dvc: automatically reorder imports
2019-11-05 02:34:40 +02:00
Ruslan Kuprieiev
0d330c1b9b
dvc: move Updater out of Repo()
...
Fixes #2039
Required by #2012 to be able to fetch data through the API without
interuption from updater.
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-06-14 00:54:36 +03:00
Mr. Outis
b4d0d37ac8
dvc: refactor package versioning logic
...
- Use `version.py` to compute a dynamic version stored in `__version__`.
Version information was scattered across the source code
(`VERSION_BASE`, `VERSION`, `__version__`, and `version.py`).
- Read `__version__` from `setup.py` and **pin** it using custom
`build_py` command class.
This way, we can maintain consistancy between the build version
and the runtime one.
Also, this gives us the ability to run `setup.py` without depending on
on `dvc` itself.
Close #1824
2019-04-06 18:06:11 -06:00
Ivan Shcheklein
75421f0f21
migrate to pytest
2019-03-17 14:49:49 -07:00