-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (90 loc) · 2.13 KB
/
pyproject.toml
File metadata and controls
102 lines (90 loc) · 2.13 KB
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
[build-system]
requires = [
"hatchling",
]
build-backend = "hatchling.build"
[project]
name = "kaggle"
dynamic = [
"version",
]
description = "Access Kaggle resources anywhere"
authors = [
{ name = "Kaggle", email = "support@kaggle.com" },
]
license = { file = "LICENSE.txt" }
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
keywords = ["Kaggle", "API"]
requires-python = ">= 3.11"
dependencies = [
"bleach",
"kagglesdk >= 0.1.20, < 1.0", # sync with kagglehub
"python-slugify",
"requests",
"python-dateutil",
"tqdm",
"urllib3 >= 1.15.1",
"packaging",
"protobuf",
"jupytext",
]
[project.scripts]
kaggle = "kaggle.cli:main"
[project.urls]
Homepage = "https://github.com/Kaggle/kaggle-cli"
Issues = "https://github.com/Kaggle/kaggle-cli/issues"
[tool.hatch.version]
path = "src/kaggle/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/kaggle"]
[tool.hatch.envs.test]
dependencies = [
"pytest"
]
[tool.hatch.envs.test.scripts]
local = "source tools/use-localhost.sh; cd tests; python unit_tests.py --failfast"
prod = "source tools/use-prod.sh; cd tests; python unit_tests.py --failfast"
integration = "pytest integration_tests"
[tool.hatch.envs.lint]
detached = true
dependencies = [
"black >= 24.10.0",
"mypy >= 1.15.0",
# Pre-install `types-*` packages to speed up lint:typing command.
"types-requests",
"types-tqdm",
"types-python-slugify",
# Needed for the `typing` lint command to find the `pytest` types.
"pytest"
]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive {args:src/kaggle tests}"
style = [
"black --check --diff {args:.}",
]
fmt = [
"black {args:.}",
"style",
]
all = [
"style",
"typing",
]
[tool.docformatter]
recursive = true
[tool.black]
target-version = ["py311"]
line-length = 120
[[tool.mypy.overrides]]
module = [
# TODO(b/505845982): Generate type hints for kagglesdk
"kagglesdk.*",
"kaggle_api_extended.*",
"jupytext.*"
]
ignore_missing_imports = true