-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathsetup.cfg
More file actions
49 lines (39 loc) · 1.47 KB
/
setup.cfg
File metadata and controls
49 lines (39 loc) · 1.47 KB
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
[mypy]
python_version = 3.10
ignore_missing_imports = true
warn_return_any = true
warn_unused_ignores = true
exclude = emails/testsuite/
# Mixin classes access attributes defined in BaseMessage via MRO;
# mypy checks each mixin in isolation and reports false attr-defined errors.
# Also suppress arg-type/misc/union-attr/return-value/no-any-return which
# stem from the same mixin pattern (self is typed as the mixin, not Message).
[mypy-emails.message]
disable_error_code = attr-defined, arg-type, misc, union-attr, return-value, no-any-return, assignment
# Uses private smtplib attrs (_have_ssl), conditional class definitions,
# and overrides smtplib.SMTP.sendmail with incompatible return type
[mypy-emails.backend.smtp.client]
disable_error_code = attr-defined, no-redef, override, no-any-return, assignment
# aiosmtplib is an optional dependency (pip install emails[async])
[mypy-aiosmtplib]
ignore_missing_imports = true
[mypy-aiosmtplib.*]
ignore_missing_imports = true
# Optional dependency stubs
[mypy-requests.*]
ignore_missing_imports = true
# Optional dependency, not always installed
[mypy-emails.template.*]
ignore_errors = true
# Django integration, not always installed
[mypy-emails.django]
ignore_errors = true
[tool:pytest]
norecursedirs = .* {arch} *.egg *.egg-info dist build requirements
markers =
e2e: tests that require a running SMTP server
django: tests that require Django
[coverage:run]
omit = emails/testsuite/*
[coverage:report]
omit = emails/testsuite/*