generated from commonknowledge/groundwork-starter-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
137 lines (125 loc) · 3.58 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
# Poetry pyproject.toml: https://python-poetry.org/docs/pyproject/
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[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 = "^13.0.0"
django-anymail = '>=8.3'
django-filter = '>=2.4.0'
djangorestframework = '>=3.12.4'
django-taggit = "*"
django-vite = "^1.2.1"
dj-database-url = '>=0.5.0'
groundwork-django = ">=0.1.5"
# groundwork-django = { path = "./groundwork", develop = true }
django-storages = "*"
gunicorn = '>=20.1.0'
wagtail = "3"
psycopg2 = '>=2.8.6'
wagtail-transfer = "*"
django-livereload-server = "^0.4"
stripe = "^2.68.0"
django-mathfilters = "^1.0.0"
django-money = "^2.1.1"
# dj-stripe = { git = "https://github.com/commonknowledge/dj-stripe.git", branch = "fixes" }
# poetry add git+https://github.com/commonknowledge/dj-stripe.git#fixes
pre-commit = "^2.17.0"
wagtail-autocomplete = "^0.8.1"
django-allauth = "^0.50.0"
django-bootstrap5 = "^21.3"
django-countries = "^7.3.2"
django-extensions = "^3.1.5"
wagtailfontawesome = "^1.2.1"
django-gravatar2 = "^1.4.4"
django-active-link = "^0.1.8"
wagtailmenus = { git = "https://github.com/commonknowledge/wagtailmenus", rev = "master" }
django-mjml = "^0.12.0"
wagtail-seo = "^2.0.0"
ShopifyAPI = "^11.0.0"
python-dateutil = "^2.8.2"
Django = {extras = ["bcrypt"], version = "^4.0.4"}
django-import-export = "^2.8.0"
pycountry = "^22.3.5"
dj-stripe = {git = "https://github.com/commonknowledge/dj-stripe.git", rev = "fixes"}
django-shopify-webhook = {git = "https://github.com/discolabs/django-shopify-webhook.git"}
posthog = "^1.4.7"
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"
[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"