-
Notifications
You must be signed in to change notification settings - Fork 19
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
8 changed files
with
73 additions
and
165 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
|
||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
|
@@ -49,7 +49,7 @@ jobs: | |
run: nox -s tests-${{ matrix.nox_pyv || matrix.pyv }} -- --cov-report=xml | ||
|
||
- name: Upload coverage report | ||
uses: codecov/[email protected].1 | ||
uses: codecov/[email protected].4 | ||
|
||
- name: Build package | ||
run: nox -s build |
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 |
---|---|---|
|
@@ -4,28 +4,69 @@ build-backend = "setuptools.build_meta" | |
|
||
[tool.setuptools_scm] | ||
|
||
[tool.black] | ||
line-length = 88 | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
\.eggs | ||
| \.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
)/ | ||
''' | ||
[project] | ||
name = "dvc-data" | ||
description = "dvc data" | ||
readme = "README.rst" | ||
license = {text = "Apache-2.0"} | ||
authors = [{ name = "Iterative", email = "[email protected]" }] | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Development Status :: 4 - Beta", | ||
] | ||
requires-python = ">=3.8" | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"funcy>=1.14", | ||
"dictdiffer>=0.8.1", | ||
"pygtrie>=2.3.2", | ||
"shortuuid>=0.5.0", | ||
"dvc-objects>=1.1.0,<2", | ||
"diskcache>=5.2.1", | ||
"attrs>=21.3.0", | ||
"sqltrie>=0.8.0,<1", | ||
] | ||
|
||
[project.urls] | ||
Issues = "https://github.com/iterative/dvc-data/issues" | ||
Source = "https://github.com/iterative/dvc-data" | ||
|
||
[project.optional-dependencies] | ||
cli = [ | ||
"typer[all]>=0.6", | ||
"rich>=10.11.0,<14.0.0", | ||
] | ||
all = [ | ||
"dvc-data[cli]", | ||
] | ||
tests = [ | ||
"pytest==7.2.0", | ||
"pytest-sugar==0.9.6", | ||
"pytest-cov==4.0.0", | ||
"pytest-mock==3.10.0", | ||
"pytest-benchmark==4.0.0", | ||
"mypy==1.5.1", | ||
"pytest-servers[s3]==0.1.3", | ||
] | ||
dev = [ | ||
"dvc-data[all]", | ||
"dvc-data[tests]", | ||
"blake3>=0.3.1", | ||
] | ||
|
||
[project.scripts] | ||
dvc = "dvci_data.__main__:main" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
known_first_party = ["dvc_data"] | ||
line_length = 88 | ||
[tool.setuptools.package-data] | ||
dvc_objects = ["py.typed"] | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
namespaces = false | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "-ra -Werror --benchmark-skip" | ||
|
@@ -78,34 +119,5 @@ module = [ | |
"shortuuid.*", | ||
] | ||
|
||
[tool.pylint.master] | ||
extension-pkg-whitelist = ["blake3"] | ||
|
||
[tool.pylint.format] | ||
max-line-length = 88 | ||
|
||
[tool.pylint.message_control] | ||
enable = ["c-extension-no-member", "no-else-return"] | ||
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.pylint.typecheck] | ||
ignored-classes = ["attr._make._CountingAttr"] | ||
|
||
[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.codespell] | ||
ignore-words-list = "fo" | ||
|
||
[tool.bandit] | ||
exclude_dirs = ["tests"] | ||
skips = ["B101"] |