generated from daikichiba9511/my-kaggle-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
95 lines (88 loc) · 1.85 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
# Ref
# 1. https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
[project]
name = "atmacup17"
description = "A solution for atmacup17 competition ."
version = "0.1.0"
authors = [{ name = "daikichiba9511", email = "[email protected]" }]
requires-python = ">= 3.10"
# Supposed that pytorch etc. has been installed by base image
dependencies = [
"numpy<2.0.0",
"pandas[all]",
"polars",
"hvplot",
"pydantic",
"timm",
"joblib",
"scikit-learn",
"h5py",
"xgboost",
"lightgbm",
"transformers",
"accelerate",
"datasets",
"sentencepiece",
]
[project.optional-dependencies]
dev = [
"matplotlib",
"japanize-matplotlib",
"seaborn",
"wandb",
"ruff",
"pytest",
"mypy",
"jupyterlab",
"quarto",
"kaggle",
"torchinfo",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# [build-system]
# requires = ["setuptools"]
# build-backend = "setuptools.build_meta"
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.ruff]
preview = true
target-version = "py310"
line-length = 119
[tool.ruff.lint]
select = ["E", "F", "B", "W", "I"]
ignore = [
"E203", # white space before ':', not compatible with black
"E501", # line-length violation
"B905", # zip iterator without strict parameter
]
unfixable = ["B"]
exclude = [
"git",
".venv",
"__pycache__",
".github",
".mypy_cache",
".vscode",
".pytest_cache",
"notebooks",
".ipynb_checkpoints",
]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
disallow_untyped_defs = true
allow_redefinition = true
warn_redundant_casts = true
show_error_context = true
incremental = false
no_implicit_optional = true
warn_unreachable = true
show_error_codes = true
pretty = true
disallow_incomplete_defs = true
warn_no_return = true
plugins = ["numpy.typing.mypy_plugin", "pydantic.mypy"]