-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
123 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
|
||
|
||
class OSS(Cloud, CloudURLInfo): | ||
|
||
IS_OBJECT_STORAGE = True | ||
|
||
@staticmethod | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from dvc.testing.fixtures import * # noqa, pylint: disable=wildcard-import,unused-import | ||
from dvc.testing.fixtures import * # noqa: F403 | ||
|
||
from .fixtures import * # noqa, pylint: disable=wildcard-import,unused-import | ||
from .fixtures import * # noqa: F403 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import pytest | ||
from dvc.testing.api_tests import ( # noqa, pylint: disable=unused-import | ||
|
||
from dvc.testing.api_tests import ( # noqa: F401 | ||
TestAPI, | ||
) | ||
from dvc.testing.remote_tests import ( # noqa, pylint: disable=unused-import | ||
from dvc.testing.remote_tests import ( # noqa: F401 | ||
TestRemote, | ||
) | ||
|
||
|
||
@pytest.fixture | ||
def remote(make_remote): | ||
yield make_remote(name="upstream", typ="oss") | ||
return make_remote(name="upstream", typ="oss") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,28 +5,63 @@ build-backend = "setuptools.build_meta" | |
[tool.setuptools_scm] | ||
write_to = "dvc_oss/_dvc_oss_version.py" | ||
|
||
[tool.black] | ||
line-length = 79 | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
\.eggs | ||
| \.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
)/ | ||
''' | ||
|
||
[tool.isort] | ||
profile = "black" | ||
known_first_party = ["dvc_oss"] | ||
line_length = 79 | ||
[project] | ||
name = "dvc-oss" | ||
description = "oss plugin for dvc" | ||
readme = "README.rst" | ||
keywords = [ | ||
"dvc", | ||
"oss", | ||
] | ||
license = { text = "Apache License 2.0" } | ||
maintainers = [{ name = "Iterative", email = "[email protected]" }] | ||
authors = [{ name = "Iterative", email = "[email protected]" }] | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"dvc", | ||
"ossfs>=2023.12.0", | ||
] | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"wheel==0.37.0", | ||
"dvc[testing]", | ||
# Test requirements | ||
"pytest==6.2.5", | ||
"pytest-cov==3.0.0", | ||
"pytest-xdist==2.4.0", | ||
"pytest-mock==3.6.1", | ||
"pytest-lazy-fixture==0.6.3", | ||
"flaky==3.7.0", | ||
"mock==4.0.3", | ||
"wget==3.2", | ||
"filelock==3.3.2", | ||
"xmltodict==0.12.0", | ||
# required by collective.checkdocs | ||
"Pygments==2.10.0", | ||
"collective.checkdocs==0.2", | ||
"pydocstyle==6.1.1", | ||
# type-checking | ||
"mypy==0.981", | ||
"types-requests==2.25.11", | ||
"types-tabulate==0.8.3", | ||
"types-toml==0.10.1", | ||
# optional dependencies | ||
'pywin32>=225; sys_platform == "win32"', | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://dvc.org/doc" | ||
Source = "https://github.com/iterative/dvc-oss" | ||
|
||
[tool.pytest.ini_options] | ||
log_level = "debug" | ||
|
@@ -51,29 +86,46 @@ warn_redundant_casts = true | |
warn_unreachable = true | ||
files = ["dvc_oss"] | ||
|
||
[tool.pylint.master] | ||
extension-pkg-whitelist = ["pygit2"] | ||
init-hook = "import sys; sys.path.append(str('tests'))" | ||
load-plugins = ["pylint_pytest"] | ||
|
||
[tool.pylint.message_control] | ||
disable = [ | ||
"format", "refactoring", "spelling", "design", | ||
"invalid-name", "duplicate-code", "fixme", | ||
"unused-wildcard-import", "cyclic-import", "wrong-import-order", | ||
"wrong-import-position", "ungrouped-imports", "multiple-imports", | ||
"logging-format-interpolation", "logging-fstring-interpolation", | ||
"missing-function-docstring", "missing-module-docstring", | ||
"missing-class-docstring", "raise-missing-from", "import-outside-toplevel", | ||
[tool.ruff] | ||
output-format = "full" | ||
show-fixes = true | ||
|
||
[tool.ruff.lint] | ||
ignore = [ | ||
"N818", "S101", "ISC001", "PT004", "PT007", "RET502", "RET503", "SIM105", "SIM108", "SIM117", | ||
"TRY003", "TRY300", "PLR2004", "PLW2901", "LOG007", | ||
] | ||
enable = ["c-extension-no-member", "no-else-return"] | ||
select = [ | ||
"F", "E", "W", "C90", "I", "N", "UP", "YTT", "ASYNC", "S", "BLE", "B", "A", "C4", "T10", | ||
"EXE", "ISC", "ICN", "G", "INP", "PIE", "T20", "PYI", "PT", "Q", "RSE", "RET", | ||
"SLOT", "SIM", "TID", "TCH", "ARG", "PGH", "PLC", "PLE", "PLR", "PLW", "TRY", | ||
"FLY", "PERF101", "LOG", "RUF", "RUF022", "RUF023", "RUF024", "RUF025", "RUF026", | ||
] | ||
preview = true | ||
explicit-preview-rules = true | ||
|
||
[tool.ruff.lint.flake8-pytest-style] | ||
fixture-parentheses = false | ||
mark-parentheses = false | ||
parametrize-names-type = "csv" | ||
raises-extend-require-match-for = ["dvc.exceptions.DvcException"] | ||
|
||
[tool.ruff.lint.flake8-tidy-imports] | ||
|
||
[tool.ruff.lint.flake8-type-checking] | ||
strict = true | ||
|
||
[tool.ruff.lint.flake8-unused-arguments] | ||
ignore-variadic-names = true | ||
|
||
[tool.ruff.lint.isort] | ||
known-first-party = ["dvc", "dvc_data", "dvc_objects"] | ||
|
||
[tool.ruff.lint.pep8-naming] | ||
extend-ignore-names = ["M", "SCM"] | ||
|
||
[tool.pylint.typecheck] | ||
generated-members = ["pytest.lazy_fixture", "logging.TRACE", "logger.trace", "sys.getwindowsversion", "argparse.Namespace"] | ||
ignored-classes = ["Dvcfile"] | ||
ignored-modules = ["azure"] | ||
signature-mutators = ["funcy.decorators.decorator"] | ||
[tool.ruff.lint.pylint] | ||
max-args = 10 | ||
|
||
[tool.pylint.variables] | ||
dummy-variables-rgx = "_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_" | ||
ignored-argument-names = "_.*|^ignored_|^unused_|args|kwargs" | ||
[tool.ruff.lint.per-file-ignores] | ||
"dvc_oss/tests/**" = ["S", "ARG001", "ARG002", "TRY002", "TRY301"] |
Oops, something went wrong.