-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
140 lines (127 loc) · 3.49 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
[tool.poetry]
name = "anymail-history"
version = "0.1.8"
description = "Email History for Django Anymail"
license = "MIT"
authors = [
"Pascal Fouque <[email protected]>",
"Matthieu Etchegoyen <[email protected]>",
]
maintainers = [
"Pascal Fouque <[email protected]>",
"Matthieu Etchegoyen <[email protected]>",
]
readme = "README.md"
homepage = "https://github.com/pfouque/anymail-history"
repository = "https://github.com/pfouque/anymail-history"
documentation = "https://github.com/pfouque/anymail-history"
classifiers = [
"Development Status :: 1 - Planning",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
packages = [{ include = "anymail_history" }]
[tool.poetry.dependencies]
python = ">=3.8"
django = ">=3.2.*"
django-anymail = ">=9.0"
[tool.poetry.group.dev.dependencies]
black = "*"
coverage = "*"
django-stubs = {extras = ["compatible-mypy"], version = "*"}
freezegun = "*"
mypy = "*"
pre-commit = "*"
pytest = "*"
pytest-cov = "*"
pytest-django = "*"
pytest-randomly = "*"
pytest-xdist = "*"
ruff = "*"
[tool.ruff]
line-length = 90
target-version = "py38"
fix = true
[tool.ruff.lint]
extend-select = [
# https://github.com/charliermarsh/ruff#table-of-contents
"F", # Pyflakes
"E", # pycodestyle
"W", # pycodestyle
"C90", # mccabe
"I", # isort
# "D", # pydocstyle
"UP", # pyupgrade
"N", # pep8-naming
# "YTT", # flake8-2020
# "ANN", # flake8-annotations
# "S", # flake8-bandit
"BLE", # flake8-blind-except
"FBT", # flake8-boolean-trap
"B", # flake8-bugbear
# "A", # flake8-builtins
"C4", # flake8-comprehensions
# "T10", # flake8-debugger
# "EM", # flake8-errmsg
"ISC", # flake8-implicit-str-concat
# "ICN", # flake8-import-conventions
# "T20", # flake8-print
# "PT", # flake8-pytest-style
# "Q", # flake8-quotes
# "RET", # flake8-return
# "SIM", # flake8-simplify
"TID", # flake8-tidy-imports
# "ARG", # flake8-unused-arguments
# "DTZ", # flake8-datetimez
# "ERA", # eradicate
# "PD", # pandas-vet
"PGH", # pygrep-hooks
# "PLC", # Pylint
# "PLE", # Pylint
# "PLR", # Pylint
# "PLW", # Pylint
# "PIE", # flake8-pie
# "COM", # flake8-commas
"INP", # flake8-no-pep420
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # Line too long
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]
unfixable = [
"F401" # unused-import
]
[tool.ruff.isort]
force-single-line = true
required-imports = ["from __future__ import annotations"]
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tests.settings"
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
[[tool.mypy.overrides]]
module = "anymail.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tests.*"
allow_untyped_defs = true
[tool.django-stubs]
django_settings_module = "tests.settings"
[build-system]
requires = ["poetry-core> = 1.2.0"]
build-backend = "poetry.core.masonry.api"