-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
122 lines (110 loc) · 2.53 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
[tool.poetry]
name = "zq-django-util"
version = "0.2.2"
description = "自强Studio Django 工具"
authors = ["Nagico <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/Nagico/zq-django-util"
documentation = "https://zq-django-util.readthedocs.io/en/latest/"
keywords = ["django", "drf", "util"]
packages = [{include = "zq_django_util"}]
[tool.poetry.dependencies]
python = ">=3.8,<4.0"
oss2 = ">=2.13.0,<3.0"
djangorestframework-simplejwt = ">=4.7,<6.0"
drf-standardized-errors = ">=0.9.0,<0.13.0"
django-cleanup = "^6.0.0"
isodate = "^0.6.1"
[tool.poetry.group.test.dependencies]
pytest = ">=6.2.0,<8.0"
pytest-cov = ">=4.0.0,<5.0"
pytest-django = ">=4.5.2,<5.0"
pytest-mock = ">=3.10.0,<4.0"
model-bakery = ">=1.9.0,<2.0.0"
django-filter = ">=22.1,<23.0"
sentry-sdk = "^1.9.10"
[tool.poetry.group.dev.dependencies]
django = ">=4.0,<5.0"
djangorestframework = ">=3.13,<4.0"
pytest = ">=6.2.0,<8.0"
pytest-cov = ">=4.0.0,<5.0"
pytest-django = ">=4.5.2,<5.0"
pytest-mock = ">=3.10.0,<4.0"
model-bakery = ">=1.9.0,<2.0.0"
importlib-metadata = "<6.0.0"
django-filter = ">=22.1,<23.0"
flake8-pyproject = "^1.2.2"
pre-commit = "^2.21.0"
sentry-sdk = "^1.9.10"
auto-changelog = "^0.6.0"
mkdocs = "^1.4.2"
mkdocstrings = {extras = ["python"], version = "^0.19.1"}
meilisearch = "^0.25.0"
[tool.poetry.extras]
sentry = ["sentry-sdk"]
[[tool.poetry.source]]
name = "tsinghua"
default = true
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 80
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| migrations
)/
'''
[tool.isort]
profile = "black"
skip = ["migrations"]
include_trailing_comma = true
use_parentheses = true
multi_line_output = 3
line_length = 80
# not using pytest-cov default, to support pycharm coverage
[tool.pytest.ini_options]
addopts = """
-s -v
"""
[tool.coverage.run]
omit =[
'*/migrations/*',
'*/__version__.py',
'*/tests/*',
'*/types.py',
'*/tests.py',
'*/setup.py',
'*/setup.cfg',
'*/.tox/*',
'*/.venv/*',
]
[tool.coverage.report]
exclude_lines =[
'pragma: no cover',
'def __repr__',
'if TYPE_CHECKING',
'raise AssertionError',
'raise NotImplementedError',
'if 0:',
'if __name__ == .__main__.:',
'class .*\bProtocol\):',
'@(abc\.)?abstractmethod',
]
[tool.flake8]
ignore = ['E203', 'E266', 'E501', 'W503']
max-line-length = 80
max-complexity = 18
select = ['B', 'C', 'E', 'F', 'W', 'T4']