-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
143 lines (131 loc) · 3.9 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
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
'^\s*\.\.\.\s*$',
'^\s*pass\s*$',
'^\s*raise NotImplementedError\s*$',
]
[tool.coverage.run]
branch = true
relative_files = true
source = ["virtual_library_card", "virtuallibrarycard"]
[tool.django-stubs]
django_settings_module = "virtual_library_card.settings.dev"
[tool.isort]
profile = "black"
[tool.mypy]
# TODO: Enable the the check_untyped_defs option
# This will get rid of the warnings that we get when running mypy
# > note: By default the bodies of untyped functions are not checked
# However this currently causes a number of errors to surface that will
# need to be cleaned up before we can enable the option.
# check_untyped_defs = true
# When we enable this option, we should remove this disable. Its just here
# to silence the noise in the mypy output for now, so its easier to see when
# there are errors in the output.
disable_error_code = "annotation-unchecked"
files = ["."]
plugins = ["mypy_django_plugin.main"]
warn_redundant_casts = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
# This override silences errors for modules we import that don't currently
# have type hints, or type stubs that cover them. We should go through this
# list periodically and remove modules that have since added type hints.
ignore_missing_imports = true
module = [
"better_profanity.*",
"crispy_forms.*",
"dal.*",
"datedelta.*",
"localflavor.*",
"parameterized.*",
"rest_framework.*",
"uwsgi.*",
# This is ignored because the file is created when building a container
# so it typically doesn't exist when running mypy, but since it only
# contains a couple version strings it can be safely ignored
"virtual_library_card._version",
]
[tool.poetry]
authors = ["The Palace Project <info@thepalaceproject.org>"]
description = "Virtual Library Card Creator"
homepage = "https://thepalaceproject.org"
license = "Apache-2.0"
name = "Virtual Library Card"
packages = [
{include = "virtual_library_card"},
{include = "virtuallibrarycard"},
]
readme = "README.md"
repository = "https://github.com/ThePalaceProject/virtual-library-card"
version = "0" # Version number is managed with tags in git
[tool.poetry.dependencies]
attrs = "^24.2.0"
better-profanity = "^0.7.0"
boto3 = "^1.26.90"
certifi = "2024.8.30"
chardet = "^5.1.0"
crispy-bootstrap4 = "^2024.1"
crispy-forms-materialize = "0.2"
datedelta = "1.4"
Django = "^4.2.3"
django-absoluteuri = "1.3.0"
django-appconf = "1.0.6"
django-autocomplete-light = "^3.9.4"
django-bootstrap4 = "^24.1"
django-compressor = "^4.4"
django-compressor-postcss = "0.8.2"
django-crispy-forms = "2.3"
django-htmlmin = "0.11.0"
django-localflavor = "4.0"
django-localflavor-us = "1.1"
django-material = "1.12.0"
django-materialize-css = "0.0.1"
django-recaptcha = "^4.0.0"
django-render-block = "0.10"
django-storages = "^1.13.2"
djangorestframework = "3.15.2"
jinja2 = "3.1.4"
Pillow = "10.4.0"
psycopg2-binary = "2.9.10"
PyJWT = "^2.6.0"
python = ">=3.8,<4"
python-stdnum = "1.20"
pytz = "^2024.1"
pyuwsgi = ">=2.0,<2.1"
requests = "^2.31"
setuptools = "^75.2.0"
[tool.poetry.group.ci.dependencies]
dunamai = "^1.16"
pre-commit = "^3.0"
tox = "^4.5"
tox-docker = "^5.0"
tox-gh-actions = "^3.0"
[tool.poetry.group.dev.dependencies]
django-stubs = {version = "^5.0.2", extras = ["compatible-mypy"]}
mypy = "^1.7.0"
parameterized = "^0.9"
pytest = "^8.0.0"
pytest-cov = "^5.0.0"
pytest-django = "^4.5.2"
types-requests = "^2.28.11"
[tool.pytest.ini_options]
addopts = [
"--cov",
"--cov-report=xml",
]
DJANGO_SETTINGS_MODULE = "virtual_library_card.settings.dev"
[tool.tomlsort]
ignore_case = true
in_place = true
sort_inline_arrays = true
sort_table_keys = true
spaces_before_inline_comment = 2
spaces_indent_inline_array = 4
trailing_comma_inline_array = true