-
Notifications
You must be signed in to change notification settings - Fork 44
/
pyproject.toml
113 lines (105 loc) · 2.61 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
[tool.poetry]
name = "django-blog-project"
version = "0.3.0"
description = ""
authors = ["jukanntenn <jukanntenn@outlook.com>"]
[[tool.poetry.source]]
name = "douban"
default = true
url = "https://pypi.doubanio.com/simple/"
[tool.poetry.dependencies]
python = ">=3.7, <4"
django = "^3.2"
django-allauth = "^0.42.0"
django-contrib-comments = "^1.9.2"
django-mptt = "^0.11.0"
django-notifications-hq = "^1.6.0"
django-haystack = "v3.0b2"
django-model-utils = "^4.0.0"
django-braces = "^1.14.0"
django-imagekit = "^4.0.2"
django-anymail = "^7.2.1"
django-environ = "^0.4.5"
django-extensions = "^3.0.8"
djangorestframework = "^3.11.1"
django-pure-pagination = "^0.3.0"
pytz = "^2020.1"
markdown = "^3.2.2"
whoosh = "^2.7.4"
jieba = "^0.42.1"
gunicorn = "^20.0.4"
pymdown-extensions = "^8.1.1"
django-constance = { version = "^2.7.0", extras = ["database"] }
django-admin-sortable2 = "^1.0"
django-celery-email = "^3.0.0"
django-ratelimit = "^3.0.1"
django-taggit = "^1.3.0"
uvicorn = "^0.11.8"
psycopg2-binary = "^2.8.6"
hiredis = "^1.1.0"
django-redis = "^4.12.1"
pygments = "^2.8.1"
django-dbbackup = "^3.3.0"
django-celery-results = "^1.2.1"
django-celery-beat = "^2.0.0"
django-ipware = "^3.0.1"
sentry-sdk = "^0.18.0"
django-watchman = "^1.2.0"
django-maintenance-mode = "^0.15.0"
pillow = "^8.0.1"
drf-spectacular = "^0.14.0"
python-webpack-boilerplate = "^0.0.2"
taggit-selectize = "^2.10.0"
django-tencentcos-storage = {git = "https://github.com/jukanntenn/django-tencentcos-storage.git", rev = "main"}
[tool.poetry.dev-dependencies]
django-debug-toolbar = "^2.2"
flake8 = "^3.8.3"
fabric = "^2.5.0"
pytest = "^6.0.1"
pytest-django = "^3.9.0"
pytest-cov = "^2.10.1"
freezegun = "^1.0.0"
django-silk = "^4.1.0"
factory-boy = "^3.0.1"
django-test-plus = "^1.4.0"
pytest-sugar = "^0.9.4"
mkdocs = "^1.1.2"
flake8-isort = "^4.0.0"
black = "^20.8b1"
coverage = { version = "^5.3", extras = ["toml"] }
[tool.pytest.ini_options]
minversion = "6.0"
DJANGO_SETTINGS_MODULE = "config.settings.test"
python_files = "tests.py test_*.py"
norecursedirs = "frontend"
addopts = "--reuse-db --cov=blogproject --cov-report html"
[tool.isort]
profile = "black"
skip = ["migrations"]
[tool.coverage.run]
include = ["blogproject/*"]
omit = ["*migrations*", "*tests*"]
[tool.black]
line-length = 88
target-version = ['py38']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| migrations
)/
)
'''
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"