-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
104 lines (91 loc) · 2.38 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
[build-system]
requires = [ "poetry-core>=2.1.1",]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "django-oscar-cch"
version = "7.3.3"
description = "Integration between django-oscar and the CCH Sales Tax Office SOAP API."
authors = ["thelab <[email protected]>"]
readme = "README.rst"
homepage = "https://gitlab.com/thelabnyc/django-oscar/django-oscar-cch"
repository = "https://gitlab.com/thelabnyc/django-oscar/django-oscar-cch"
license = "ISC"
[[tool.poetry.packages]]
include = "oscarcch"
from = "src"
[tool.poetry.dependencies]
python = "^3.12"
Django = "^4.2.19"
django-oscar = "3.2.5"
zeep = "^4.3.1"
django-stubs-ext = "^5.1.3"
[tool.poetry.group.circuitbreaker.dependencies]
pybreaker = "^1.2.0"
[tool.poetry.group.dev.dependencies]
coverage = "^7.6.12"
flake8 = "^7.1.2"
freezegun = "^1.5.1"
lxml = "^5.3.1"
psycopg2-binary = "^2.9.10"
sorl-thumbnail = "^12.11.0"
sphinx-rtd-theme = "^3.0.2"
sphinx = "^8.2.0"
tox = "^4.24.1"
unittest-xml-reporting = "^3.2.0"
requests-mock = "^1.12.1"
django-stubs = "^5.1.3"
mypy = "^1.15.0"
types-psycopg2 = "^2.9.21.20241019"
lxml-stubs = "^0.5.1"
[tool.commitizen]
name = "cz_conventional_commits"
annotated_tag = true
gpg_sign = true
tag_format = "v$version"
update_changelog_on_bump = true
changelog_merge_prerelease = true
version_provider = "poetry"
version_scheme = "pep440"
version_files = [
"pyproject.toml:version",
]
pre_bump_hooks = [
"pre-commit run --all-files || true",
]
post_bump_hooks = [
"git push origin master $CZ_POST_CURRENT_TAG_VERSION"
]
[tool.mypy]
python_version = "3.12"
plugins = ["mypy_django_plugin.main"]
# Strict mode, see mypy --help
warn_unused_configs = true
disallow_subclassing_any = true
disallow_any_generics = true
# disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
# warn_return_any = true
no_implicit_reexport = true
show_error_codes = true
# Not turned on by strict
strict_equality = true
[[tool.mypy.overrides]]
module = "oscar.*"
follow_untyped_imports = true
[[tool.mypy.overrides]]
module = "*.migrations.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "*.tests.*"
ignore_errors = true
[tool.django-stubs]
django_settings_module = "sandbox.settings"
[tool.isort]
profile = "black"
from_first = true