-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
126 lines (111 loc) · 2.47 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[project]
name = "pydantic-djmodel"
version = "0.1.0" # semantic-release
description = "pydantic-djmodel is a Python library that converts Pydantic BaseModels into Django ORM models."
readme = "README.md"
authors = [
{name = "Ivan Ogasawara", email = "[email protected]"}
]
license = "MIT"
requires-python = ">=3.10,<4"
dependencies = [
"typeguard (>=4.0)",
"eval-type-backport (>=0.2.2)",
"pydantic (>=2.10.6)",
"django (>=5)",
]
[build-system]
requires = ["poetry-core>=2", "poetry>=2"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
packages = [
{include = "pydantic_djmodel", from="src"},
]
include = ["src/pydantic_djmodel/py.typed"]
exclude = [
".git/*",
".env*",
]
[tool.poetry.group.dev.dependencies]
pytest = ">=7.3.2"
pytest-django = ">=4.10.0,<5.0.0"
pytest-cov = ">=4.1.0"
hypothesis = ">=6.0"
coverage = ">=7.2.7"
isort = ">=5.12.0"
pre-commit = ">=3.3.2"
flake8 = ">=4.0.1, <7"
ruff = ">=0.2.0"
mypy = ">=1.5.0"
bandit = ">=1.7.5"
pydocstyle = ">=6.3.0"
vulture = ">=2.7"
mccabe = ">=0.6.1"
ipython = "<8"
ipykernel = ">=6.0.0"
Jinja2 = ">=3.1.2"
mkdocs = ">=1.4.3"
mkdocs-exclude = ">=1.0.2"
mkdocs-jupyter = ">=0.24.1"
mkdocs-literate-nav = ">=0.6.0"
mkdocs-macros-plugin = ">=0.7.0,<1"
mkdocstrings = ">=0.21.2"
mkdocstrings-python = ">= 1.1.2"
mkdocs-gen-files = ">=0.5.0"
makim = "1.20.0"
# 'PosixPath' object has no attribute 'endswith'
virtualenv = "<=20.25.1"
fhir-resources = ">=8"
[tool.bandit]
exclude_dirs = ["tests"]
targets = "./"
[tool.isort]
ensure_newline_before_comments = true
line_length = 79
multi_line_output = 3
include_trailing_comma = true
skip_glob = ["docs/*", "*.egg-info"]
[tool.mypy]
python_version = "3.9"
check_untyped_defs = true
strict = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
exclude = ["scripts/"]
[tool.pytest.ini_options]
testpaths = [
"tests",
]
DJANGO_SETTINGS_MODULE = "pydantic_djmodel._settings"
[tool.ruff]
line-length = 79
force-exclude = true
src = ["./"]
exclude = [
'docs',
]
fix = true
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"D", # pydocstyle
"YTT", # flake8-2020
"RUF", # Ruff-specific rules
"I001", # isort
"I", # Enables import sorting checks
]
fixable = ["I001"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
lines-between-types = 1
[tool.ruff.format]
quote-style = "single"
[tool.vulture]
min_confidence = 80
paths = ["./"]
sort_by_size = true
verbose = false