kculculate / pyproject.toml
neoai-kterasawa
dependencies
8b568df
[tool.poetry]
name = "kculculate"
version = "0.1.0"
description = ""
authors = ["neoai-kterasawa <[email protected]>"]
packages = [{ include = "src" }]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
gradio = "^4.39.0"
pydantic = "^2.8.2"
[tool.poetry.group.dev.dependencies]
isort = "^5.13.2"
black = "^24.4.2"
mypy = "^1.11.0"
pyproject-flake8 = "^7.0.0"
pytest = "^8.3.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 119
exclude = '''
/(
\venv
| \.git
| \.hg
| __pycache__
| \.mypy_cache
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.flake8]
max-line-length = 119
extend-ignore = ["E203", "W503", "E501", "E704"]
exclude = [".venv", ".git", "__pycache__", ".mypy_cache", ".hg"]
max-complexity = 10
[tool.mypy]
ignore_missing_imports = true
# follow_imports = normal
disallow_any_unimported = false
disallow_any_expr = false # 式でのAny禁止
disallow_any_decorated = false
disallow_any_explicit = false # 変数でAny禁止
disallow_any_generics = true # ジェネリックで書かないの禁止
disallow_subclassing_any = false # Anyのサブクラス禁止
disallow_untyped_calls = true # 型なし関数呼び出し禁止 `a: int = f()`
disallow_untyped_defs = true # 型なし関数定義禁止 `def f(a: int) -> int`
disallow_incomplete_defs = true # 一部の型定義を禁止 `def f(a: int, b)`
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true # 辿りつかないコードの検出
allow_redefinition = false # 変数の再定義を禁止
show_error_context = true
show_column_numbers = true
[tool.mypy-src]
ignore_missing_imports = false