-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
44 lines (37 loc) · 1016 Bytes
/
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
[tool.poetry]
name = "Django Tutorial"
version = "0.1.0"
description = ""
authors = ["kyo <odinxp@gmail.com>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.12"
django = "^4.2"
djangorestframework = "^3.15.1"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.3.3"
ruff = "0.9.2"
mypy = "^1.11.2"
django-stubs = "^5.0.4"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[project]
requires-python = ">=3.12" # 影響pyupgrade檢查與自動修正的版本
[tool.ruff] # https://docs.astral.sh/ruff/settings/#top-level
line-length = 100
exclude = ["**/migrations/", "**/manage.py"]
[tool.ruff.lint] # https://docs.astral.sh/ruff/settings/#lint
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
]
ignore = [
"E402", # module level import not at top of file
]
[tool.ruff.format] # https://docs.astral.sh/ruff/settings/#format
quote-style = "single"