mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
84 lines
2.3 KiB
TOML
84 lines
2.3 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=48", "setuptools_scm[toml]>=6.3.1", "setuptools_scm_git_archive==1.1"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.setuptools_scm]
|
|
write_to = "dvc/_dvc_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", "dvc_data", "dvc_objects", "tests"]
|
|
line_length = 79
|
|
|
|
[tool.pytest.ini_options]
|
|
log_level = "debug"
|
|
addopts = "-ra"
|
|
markers = [
|
|
"needs_internet: Might need network access for the tests",
|
|
"vscode: Tests verifying contract between DVC and VSCode plugin",
|
|
"studio: Tests verifying contract between DVC and Studio"
|
|
]
|
|
xfail_strict = true
|
|
|
|
[tool.mypy]
|
|
# Error output
|
|
show_column_numbers = true
|
|
show_error_codes = true
|
|
show_error_context = true
|
|
show_traceback = true
|
|
pretty = true
|
|
# See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports.
|
|
ignore_missing_imports = true
|
|
check_untyped_defs = false
|
|
# Warnings
|
|
warn_no_return = true
|
|
warn_redundant_casts = true
|
|
warn_unreachable = true
|
|
files = ["dvc"]
|
|
|
|
[tool.pylint.master]
|
|
extension-pkg-whitelist = ["pygit2"]
|
|
init-hook = "import sys; sys.path.append(str('tests'))"
|
|
load-plugins = ["pylint_pytest", "pylint_plugin_disable"]
|
|
|
|
[tool.pylint.message_control]
|
|
disable = [
|
|
"format", "refactoring", "spelling", "design", "no-self-use",
|
|
"invalid-name", "misplaced-comparison-constant", "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",
|
|
"cannot-enumerate-pytest-fixtures",
|
|
]
|
|
enable = ["c-extension-no-member", "no-else-return"]
|
|
|
|
[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.pylint.variables]
|
|
dummy-variables-rgx = "_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_"
|
|
ignored-argument-names = "_.*|^ignored_|^unused_|args|kwargs"
|