-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (65 loc) · 1.34 KB
/
pyproject.toml
File metadata and controls
74 lines (65 loc) · 1.34 KB
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
[project]
name = "djestful"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
authors = [
{ name = "Izcar J. Muñoz Torrez", email = "izcarmt95@gmail.com" }
]
requires-python = ">=3.10"
dependencies = [
"django>=4,<6",
"pydantic>=2.9,<3",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"django-stubs[compatible-mypy]>=5.1.3",
"mypy>=1.9,<2",
"pre-commit>=3.8,<4",
"ruff>=0.9,<1",
]
testing = [
"pytest-django>=4.9.0",
]
[tool.pytest]
python_files = ["tests.py", "test_*.py"]
[tool.mypy]
python_version = "3.11"
strict=true
[[tool.mypy.overrides]]
module = "tests.*"
ignore_missing_imports = true
disallow_untyped_defs = false
plugins = ["pydantic.mypy"]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
[tool.ruff]
src =["djestful"]
exclude = [
".venv",
]
line-length = 100
[tool.ruff.lint]
fixable = ["F401", "ALL"]
unfixable = []
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "single"
indent-style = "space"