-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
90 lines (77 loc) · 1.71 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
[project]
name = "kb-2315"
version = "0.1.5"
description = "Add your description here"
authors = [{ name = "kb_2135", email = "[email protected]" }]
dependencies = [
"toml>=0.10.2",
"requests>=2.31.0",
"fastapi>=0.104.0",
"uvicorn>=0.23.2",
"line-bot-sdk>=3.5.0",
"alembic>=1.12.1",
"sqlalchemy>=2.0.23",
"streamlit>=1.28.1",
"plotly>=5.18.0",
"psycopg2-binary>=2.9.9",
"icalendar>=5.0.11",
]
readme = "README.md"
requires-python = ">= 3.11"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"pytest>=7.4.2",
"black>=23.10.0",
"isort>=5.12.0",
"mypy>=1.6.1",
"ruff>=0.1.1",
"types-toml>=0.10.8.7",
"types-requests>=2.31.0.10",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.black]
line-length = 120
target-version = ['py310']
[tool.flake8]
max-line-length = 120
max-complexity = 18
ignore = "E266,E402,W503"
[tool.isort]
profile = "black"
lines_after_imports = 2
[tool.mypy]
ignore_missing_imports = true
warn_unused_ignores = false
[tool.ruff]
line-length = 120
# Enable Pyflakes `E` and `F` codes by default.
select = ["E", "F", "I"]
ignore = ["I001"]
# Exclude a variety of commonly ignored directories.
exclude = [
".git",
".mypy_cache",
".nox",
".ruff_cache",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
]
per-file-ignores = {}
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.10.
target-version = "py310"
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10