-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
116 lines (100 loc) · 2.96 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[build-system]
requires = ["setuptools>=48", "wheel", "setuptools_scm[toml]>=6.3.1"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "dvc_gdrive/_dvc_gdrive_version.py"
[project]
name = "dvc-gdrive"
description = "gdrive plugin for dvc"
readme = "README.rst"
keywords = [
"dvc",
"gdrive",
]
license = { text = "Apache License 2.0" }
maintainers = [{ name = "Iterative", email = "support@dvc.org" }]
authors = [{ name = "Iterative", email = "support@dvc.org" }]
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",
"Programming Language :: Python :: 3.13",
]
dynamic = ["version"]
dependencies = [
"dvc",
"pydrive2[fsspec]>=1.19.0",
]
[project.optional-dependencies]
dev = [
"dvc-gdrive[tests]",
"mypy==1.13.0",
]
tests = [
"dvc[testing]",
"pytest>=7,<9",
"pytest-cov>=4.1.0",
"pytest-xdist>=3.2",
]
[project.urls]
Documentation = "https://dvc.org/doc"
Source = "https://github.com/iterative/dvc-gdrive"
[tool.pytest.ini_options]
log_level = "debug"
addopts = "-ra"
markers = [
"needs_internet: Might need network access for the tests",
]
[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_gdrive"]
[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",
]
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.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.per-file-ignores]
"dvc_gdrive/tests/**" = ["S", "ARG001", "ARG002", "TRY002", "TRY301"]