-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (60 loc) · 1.5 KB
/
pyproject.toml
File metadata and controls
71 lines (60 loc) · 1.5 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
[tool.poetry]
name = "dllab-ddd-sample"
version = "0.1.0"
description = ""
authors = ["wf-yamaday <e155417k@st.u-gakugei.ac.jp>"]
[tool.poetry.dependencies]
python = "^3.8"
Django = "^4.1.3"
django-ninja = "^0.19.1"
[tool.poetry.dev-dependencies]
pytest = "^7.0.0"
pytest-django = "^4.5.2"
pysen = {version = "0.10.1"}
mypy = "^0.931"
black = "^22.1.0"
flake8 = "^4.0.1"
isort = "^5.10.1"
django-stubs = "^1.9.0"
[tool.pysen]
version = "0.10.1"
[tool.pysen.lint]
enable_black = true
enable_flake8 = true
enable_isort = true
enable_mypy = true
mypy_preset = "strict"
mypy_path = ["./sample_project"]
line_length = 88
py_version = "py38"
[tool.pysen.lint.source]
includes = ["./sample_project"]
exclude_globs = ["**/migrations/*.py"]
[[tool.pysen.lint.mypy_targets]]
paths = ["./sample_project"]
[[tool.pysen.lint.mypy_plugins]]
function = "mypy_django_plugin.main"
[[tool.pysen.lint.mypy_plugins]]
function = "pydantic.mypy"
[tool.pysen-cli]
settings_dir = "."
[tool.pytest.ini_options]
minversion = "6.0"
DJANGO_SETTINGS_MODULE = "config.settings"
addopts = "-s -v -ra --durations=0"
python_files =["tests.py","test_*.py","*_tests.py"]
testpaths = [
"sample_project",
]
[tool.black] # automatically generated by pysen
line-length = 88
target-version = ["py38"]
[tool.isort] # automatically generated by pysen
default_section = "THIRDPARTY"
ensure_newline_before_comments = true
force_grid_wrap = 0
force_single_line = false
include_trailing_comma = true
line_length = 88
multi_line_output = 3
use_parentheses = true