-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
123 lines (107 loc) · 3.31 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
# syntax-documentation:
# - https://python-poetry.org/docs/pyproject
# - https://flit.readthedocs.io/en/latest/pyproject_toml.html
#
# NOTE: you have to use single-quoted strings in TOML for regular expressions.
# It's the equivalent of r-strings in Python. Multiline strings are treated as
# verbose regular expressions by Black. Use [ ] to denote a significant space
# character.
#
# > poetry install
# > poetry install --only docs
# > poetry install (--with|--without) (docs|dev|ipython|profiling|testing|typing)
[build-system]
requires = ["poetry-core>=1.4.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 119
target-version = ['py39']
exclude = '''
/(
| migrations
)/
'''
[tool.poetry]
name = "verzekeringen.api"
version = "0.1.0"
description = "The api for scouts verzekeringen"
authors = [
"Jonas Elst <[email protected]>",
"Stijn Verholen <[email protected]>",
]
maintainers = [
"Tinus Van Langendonck <[email protected]>",
"Wouter Vanden Hove <[email protected]>",
]
homepage = "https://github.com/ScoutsGidsenVL/verzekeringen-backend"
repository = "https://github.com/ScoutsGidsenVL/verzekeringen-backend"
keywords = ["django", "scouts", "verzekeringen"]
packages = [
{ include = "apps", from = "verzekeringen_api" },
{ include = "initial_data", from = "verzekeringen_api" },
{ include = "scouts_insurances", from = "verzekeringen_api" },
{ include = "verzekeringen_api", from = "verzekeringen_api" },
]
[tool.poetry.dependencies]
python = ">=3.9,<3.10"
boto3 = ">=1.30"
django = ">=4.2,<5.0"
dj-email-url = ">=1.0"
django-anymail = {extras = ["sendinblue"], version = ">=10.2"}
django-cors-headers = ">=3.7"
django-debug-toolbar = ">=4.3.0"
django-extensions = ">=3.2.3"
django-filter = ">=23.5"
django-storages = ">=1.11"
djangorestframework = ">=3.14"
drf-yasg = ">=1.21.4"
environs = ">=10.0"
jsonfield = ">=3.1"
mozilla-django-oidc = ">=2.0" # @TODO
packaging = ">=23.2"
pdfrw = ">=0.4"
psycopg2-binary = ">=2.9"
pyjwt = ">=2.3"
PyYAML = ">=6.0"
# scouts-auth = {git = "ssh://[email protected]:2224/boro/scouts_auth.git", rev = "master"} # @TODO
urllib3= "1.26.20"
[tool.poetry.group.dev.dependencies]
autoread-dotenv = ">=1.0.2"
black = ">=24.4.2"
isort = ">=5.13.2"
ruff = ">=0.0"
[tool.poetry.group.ipython.dependencies]
ipdb = ">=0.13"
ipython = ">=8.18"
[tool.poetry.group.testing.dependencies]
coverage = { extras = ["toml"], version = ">=6.2" }
hypothesis = ">=6.72"
# nox = ">=2022.11"
# nox-poetry = ">=1.0"
pytest = ">=7.0"
pytest-clarity = ">=1.0"
pytest-codecov = ">=0.5"
pytest-cov = ">=3.0"
pytest-click = ">=1.1"
pytest-django = ">=4.5.2"
pytest-mock = ">=3.6"
pytest-xdist = ">=3.2"
# tox = ">=4.0"
[tool.pytest.ini_options]
cache_dir = "var/cache/pytest"
log_cli = false # enable to show log-output
log_cli_level = "NOTSET"
filterwarnings = []
markers = ["unit", "integration"]
pythonpath = [".", "verzekeringen_api"]
testpaths = ["tests"]
# the junit-report is used to report coverage in gitlab
addopts = "--color=yes --junit-xml='${BASE_DIR}/var/coverage/pytest.xml'"
django_debug_mode = "keep"
DJANGO_SETTINGS_MODULE = "verzekeringen_api.settings"
[tool.ruff]
# ruff searches for settings in the target-dir and up
# https://docs.astral.sh/ruff/configuration
cache-dir = "var/cache/ruff"
exclude = ["**/migrations/*.py"]
line-length = 120