-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
148 lines (131 loc) · 2.98 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.autopep8]
aggressive = 3
# ignore = "E501,W6" # or ["E501", "W6"]
in-place = true
max_line_length = 120
recursive = true
[tool.bandit.assert_used]
skips = ["tests/utils*.py", '**/test_*.py', '**/test_*.py']
[tool.black]
exclude = """
(
/(
.eggs # exclude a few common directories in the
| .git # root of the project
| .hg
| .mypy_cache
| .tox
| .venv
| .venv2
| venv
| _build
| buck-out
| build
| dist
)/
)
"""
include = '\.pyi?$'
line-length = 120
preview = true
target-version = ['py39']
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
"if __name__ == .__main__.:"
]
[tool.isort]
profile = "black"
[tool.mypy]
# explicit_package_bases = true
exclude = """
(
/(
backups # exclude a few common directories in the
| local # root of the project
)/
)
"""
mypy_path = "./stubs/"
plugins = ["pydantic.mypy"]
warn_redundant_casts = true
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"requests_toolbelt",
"indexed"
]
[[tool.mypy.overrides]]
disable_error_code = ["attr-defined"]
module = [
"pydango.connection.client"
]
[tool.poetry]
authors = ["nadobando <[email protected]>"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Database",
"Framework :: Pydantic :: 1"
]
description = "pydantic based ArangoDB ODM"
documentation = "https://nadobando.github.io/pydangorm"
homepage = "https://github.com/nadobando/pydangorm"
license = "MIT"
name = "pydangorm"
packages = [{include = "pydango"}]
readme = "README.md"
repository = "https://github.com/nadobando/pydangorm"
version = "0.3.0"
[tool.poetry.dependencies]
aioarango = "^1.0.0"
indexed = "^1.3.0"
pydantic = ">=1.10.17"
python = ">=3.9,<4.0"
urllib3 = "==1.26.15"
[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
coverage = "^7.2.5"
freezegun = "^1.2.2"
isort = "^5.12.0"
mypy = "^1.5.1"
pre-commit = "^3.3.1"
pydiction = "^0"
pytest = "^7.3.1"
pytest-asyncio = "^0.21.0"
pytest-cov = "^4.1.0"
[tool.poetry.group.docs.dependencies]
mkdocs-material = "^9.4.2"
pymdown-extensions = "^10.3"
[tool.pytest.ini_options]
addopts = "-ra"
asyncio_mode = "auto"
[tool.ruff]
exclude = ["stubs"]
line-length = 120
[tool.semantic_release]
match = "main"
prerelease = false
version_toml = [
"pyproject.toml:tool.poetry.version"
]
version_variables = [
"pydango/__init__.py:__version__"
]
[tool.semantic_release.changelog]
exclude_commit_patterns = [
"^ci:.*",
"^(?!feat:|fix:|perf:|refactor:).*$"
]
[tool.semantic_release.publish]
upload_to_vcs_release = false