generated from commonknowledge/groundwork-starter-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
149 lines (136 loc) · 3.69 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
149
# Poetry pyproject.toml: https://python-poetry.org/docs/pyproject/
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.djlint]
profile = "django"
use_gitignore = true
ignore="H006,H031,T003,H008,H030,T002,H029,T032,T001,D018,H021,H023,H026"
[tool.poetry]
name = "app"
version = "0.1.0"
description = "A django project using groundwork framework"
authors = []
[tool.poetry.dependencies]
python = "^3.9"
boto3 = '>=1.17.77'
botocore = '>=1.20.77'
requests = '>=2.25.1'
rich = "^10.7.0"
django = "4.2"
django-anymail = '>=8.3'
django-filter = '>=2.4.0'
djangorestframework = '>=3.12.4'
django-taggit = "*"
dj-database-url = '>=0.5.0'
groundwork-django = ">=0.1.5"
# groundwork-django = { path = "./groundwork", develop = true }
django-storages = "*"
gunicorn = '>=20.1.0'
wagtail = "~5.2"
psycopg2 = '>=2.8.6'
wagtail-transfer = "*"
django-livereload-server = "^0.4"
stripe = "^2.68.0"
django-mathfilters = "^1.0.0"
django-money = "^3"
pre-commit = "^2.17.0"
wagtail-autocomplete = "^0.9"
django-allauth = "^0.50.0"
django-bootstrap5 = "^21.3"
django-countries = "^7.3.2"
django-extensions = "^3.1.5"
django-gravatar2 = "^1.4.4"
django-active-link = "^0.1.8"
wagtailmenus = "^3.1.9"
django-mjml = "^1.1"
wagtail-seo = "^2.0.0"
ShopifyAPI = "12.3.0"
python-dateutil = "^2.8.2"
Django = {extras = ["bcrypt"], version = "^4.0.4"}
django-import-export = "^2.8.0"
pycountry = "^22.3.5"
django-shopify-webhook = {git = "https://github.com/discolabs/django-shopify-webhook.git"}
posthog = "^3.3.1"
sentry-sdk = "^1.5.11"
mailchimp-marketing = "^3.0.75"
django-redirect-to-non-www = "^0.1.1"
django-silk = "^4.3.0"
wagtail-admin-list-controls = "^0.1.7"
django-oauth-toolkit = "^2.0.0"
humanize = "^4.3.0"
django-db-queue = "^3.0.0"
dj-stripe = "^2.7.2"
djlint = "^1.19.7"
selenium = "^4.7.2"
webdriver-manager = "^3.8.5"
wagtail-cache = "^2.2.0"
orjson = "^3.9.2"
slippers = "^0.6.2"
django-vite = { git = "https://github.com/Niicck/django-vite", rev = "fix-isDynamicEntry" }
whitenoise = { extras = ["brotli"], version = "*" }
wagtail-rangefilter = "^0.2.1"
[tool.poetry.dev-dependencies]
bandit = "^1.7.0"
black = {version = "^22", allow-prereleases = true}
darglint = "^1.8.0"
django-debug-toolbar = "*"
isort = {extras = ["colors"], version = "^5.9.3"}
pre-commit = "^2.14.0"
pylint = "^2.10.2"
pydocstyle = "^6.1.1"
pytest = "^6.2.4"
pytest-django = "^4.4.0"
pyupgrade = "^2.24.0"
safety = "^1.10.3"
[tool.black]
# https://github.com/psf/black
target-version = ["py39"]
line-length = 88
color = true
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| node_modules
| build
| dist
| vite
| env
| venv
)/
'''
[tool.isort]
# https://github.com/timothycrosley/isort/
py_version = 39
line_length = 88
known_typing = ["typing", "types", "typing_extensions", "mypy", "mypy_extensions"]
known_third_party = ["groundwork"]
sections = ["FUTURE", "TYPING", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
include_trailing_comma = true
profile = "black"
multi_line_output = 3
indent = 4
color_output = true
[tool.pytest.ini_options]
# https://docs.pytest.org/en/6.2.x/customize.html#pyproject-toml
# Directories that are not visited by pytest collector:
norecursedirs =["hooks", "*.egg", ".eggs", "dist", "build", "docs", ".tox", ".git", "__pycache__"]
doctest_optionflags = ["NUMBER", "NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL"]
# Extra options:
addopts = [
"--strict-markers",
"--tb=short",
"--doctest-modules",
"--doctest-continue-on-failure",
]
markers = [
"integration_test: marks tests as integrtation tests (not run in make lint)",
]
DJANGO_SETTINGS_MODULE = "app.settings.test"
python_files = "tests.py test_*.py *_tests.py"