-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
98 lines (86 loc) · 2.24 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
[tool.poetry]
name = "pyresearch"
version = "0.1.0"
description = ""
authors = ["None"]
readme = "README.md"
packages = [
{ include = "src" },
{ include = "tests" },
]
[tool.poetry.dependencies]
python = "^3.10"
boto3 = "^1.34.23"
wandb = "^0.16.2"
hydra-core = "^1.3.2"
jupyterlab = "^4.0.11"
[tool.poetry.group.dev.dependencies]
ruff = "^0.1.14"
mypy = "^1.8.0"
pytest = "^7.4.4"
pytest-env = "^1.1.3"
isort = "^5.13.2"
mdformat-gfm = "^0.3.5"
mdformat-frontmatter = "^2.0.1"
mdformat_footnote = "^0.1.1"
pytest-cov = "^4.0.0"
loguru = "^0.7.2"
[tool.poetry.group.type.dependencies]
pydantic = "^2.5.3"
beartype = "^0.17.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
# エラー時のメッセージを詳細表示
show_error_context = true
# エラー発生箇所の行数/列数を表示
show_column_numbers = true
# import 先のチェックを行わない (デフォルトだとサードパーティーライブラリまでチェックする)
ignore_missing_imports = true
# 関数定義の引数/戻り値に型アノテーション必須
disallow_untyped_defs = true
# デフォルト引数に None を取る場合型アノテーションに Optional 必須
no_implicit_optional = true
# 戻り値が Any 型ではない関数の戻り値の型アノテーションが Any のとき警告
warn_return_any = true
# mypy エラーに該当しない箇所に `# type: ignore` コメントが付与されていたら警告
# ※ `# type: ignore` が付与されている箇所は mypy のエラーを無視出来る
warn_unused_ignores = true
# 冗長なキャストに警告
warn_redundant_casts = true
[tool.ruff]
exclude = [
".venv",
"venv",
"__pycache__",
".git",
]
line-length = 79
indent-width = 4
[tool.ruff.lint]
# PEP8のどのルールを対象に警告を出すか
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = [
]
fixable = ["ALL"]
[tool.ruff.format]
quote-style = "double"
docstring-code-format = true
[tool.ruff.lint.mccabe]
# if,forなどの複雑性をどれくらい許容するか。if,for文が11以上あると警告
# C901
max-complexity = 10